]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
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)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 10 Aug 2022 07:25:30 +0000 (09:25 +0200)
BugLink: https://bugs.launchpad.net/bugs/1981864
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
tools/testing/selftests/cgroup/test_stress.sh

index 109c044f715f90d3b5a84cc463a5581716be816a..3c9c4554d5f6ae23470571c9e0c2b28a67483157 100755 (executable)
@@ -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