aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaiman Long <[email protected]>2022-05-13 19:09:28 +0000
committerTejun Heo <[email protected]>2022-05-13 19:33:21 +0000
commit213adc63dfbcdff9a0c19ec1f2681fda9c05cf6d (patch)
tree6c1802737419f803a61b9f9dab9978a1c0fe1d72
parentkselftest/cgroup: fix test_stress.sh to use OUTPUT dir (diff)
downloadkernel-213adc63dfbcdff9a0c19ec1f2681fda9c05cf6d.tar.gz
kernel-213adc63dfbcdff9a0c19ec1f2681fda9c05cf6d.zip
kseltest/cgroup: Make test_stress.sh work if run interactively
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. Signed-off-by: Waiman Long <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
-rwxr-xr-xtools/testing/selftests/cgroup/test_stress.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/cgroup/test_stress.sh b/tools/testing/selftests/cgroup/test_stress.sh
index 109c044f715f..3c9c4554d5f6 100755
--- a/tools/testing/selftests/cgroup/test_stress.sh
+++ b/tools/testing/selftests/cgroup/test_stress.sh
@@ -1,4 +1,4 @@
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0
-./with_stress.sh -s subsys -s fork ${OUTPUT}/test_core
+./with_stress.sh -s subsys -s fork ${OUTPUT:-.}/test_core