diff options
author | Waiman Long <longman@redhat.com> | 2022-05-13 15:09:28 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-06-09 10:23:30 +0200 |
commit | 85a2806c40dae9b4ccefd94a4ce1e9f6307d4b6e (patch) | |
tree | bb7c8777c13f02fc9befb1d46de9bb9bad06de38 /tools | |
parent | 1810bafaca2bb3bca6e6ae29a79f55d454ef5021 (diff) | |
download | linux-stable-85a2806c40dae9b4ccefd94a4ce1e9f6307d4b6e.tar.gz linux-stable-85a2806c40dae9b4ccefd94a4ce1e9f6307d4b6e.tar.bz2 linux-stable-85a2806c40dae9b4ccefd94a4ce1e9f6307d4b6e.zip |
kseltest/cgroup: Make test_stress.sh work if run interactively
commit 213adc63dfbcdff9a0c19ec1f2681fda9c05cf6d upstream.
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 <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/testing/selftests/cgroup/test_stress.sh | 2 |
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 |