From: Waiman Long Date: Fri, 13 May 2022 19:09:28 +0000 (-0400) Subject: kseltest/cgroup: Make test_stress.sh work if run interactively X-Git-Tag: v6.6.17~7461^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=213adc63dfbcdff9a0c19ec1f2681fda9c05cf6d;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Tejun Heo --- diff --git a/tools/testing/selftests/cgroup/test_stress.sh b/tools/testing/selftests/cgroup/test_stress.sh index 109c044..3c9c455 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