mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-22 23:13:01 +02:00
kseltest/cgroup: Make test_stress.sh work if run interactively
commit213adc63df
upstream. Commit54de76c012
("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>
This commit is contained in:
parent
1810bafaca
commit
85a2806c40
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user