kseltest/cgroup: Make test_stress.sh work if run interactively
authorWaiman Long <longman@redhat.com>
Fri, 13 May 2022 19:09:28 +0000 (15:09 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:30:55 +0000 (10:30 +0200)
commit73c51913d8d04aa9e7b0e807a72202297daaf417
treece1397d920d41629cb5208771f8bf91b6fd5f91e
parentd2f974991117748a86e38a74dd826bf01ffd93d7
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>
tools/testing/selftests/cgroup/test_stress.sh