Commit 54de76c01239 ("kselftest/cgroup: fix test_stress.sh to use OUTPUT dir") changes the test_core command path from . to $OUTPUT. However, variable OUTPUT may not be defined if the command is run interactively. Fix that by using ${OUTPUT:-.} to cover both cases.
Showing the changes to tools/testing (1 of 1 file). Show all
Unified · Split
| @@ -1,4 +1,4 @@ | |||
| 1 | #!/bin/bash | 1 | #!/bin/bash |
| 2 | # SPDX-License-Identifier: GPL-2.0 | 2 | # SPDX-License-Identifier: GPL-2.0 |
| 3 | 3 | ||
| 4 | ./with_stress.sh -s subsys -s fork ${OUTPUT}/test_core | 4 | ./with_stress.sh -s subsys -s fork ${OUTPUT:-.}/test_core |