Skip to content

Commit

Permalink
kseltest/cgroup: Make test_stress.sh work if run interactively
Browse files Browse the repository at this point in the history
commit 213adc6 upstream.

Commit 54de76c ("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>
  • Loading branch information
Waiman Long authored and gregkh committed Jun 9, 2022
1 parent 82b2b60 commit ec1378f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/testing/selftests/cgroup/test_stress.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ec1378f

Please sign in to comment.