From cd7af740a8f93646ea55f86400e44f2da552732a Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Mon, 6 Jun 2022 19:09:41 +0200 Subject: [PATCH] 5.15-stable patches added patches: kseltest-cgroup-make-test_stress.sh-work-if-run-interactively.patch --- ..._stress.sh-work-if-run-interactively.patch | 29 +++++++++++++++++++ queue-5.15/series | 1 + 2 files changed, 30 insertions(+) create mode 100644 queue-5.15/kseltest-cgroup-make-test_stress.sh-work-if-run-interactively.patch diff --git a/queue-5.15/kseltest-cgroup-make-test_stress.sh-work-if-run-interactively.patch b/queue-5.15/kseltest-cgroup-make-test_stress.sh-work-if-run-interactively.patch new file mode 100644 index 00000000000..b49a948658e --- /dev/null +++ b/queue-5.15/kseltest-cgroup-make-test_stress.sh-work-if-run-interactively.patch @@ -0,0 +1,29 @@ +From 213adc63dfbcdff9a0c19ec1f2681fda9c05cf6d Mon Sep 17 00:00:00 2001 +From: Waiman Long +Date: Fri, 13 May 2022 15:09:28 -0400 +Subject: kseltest/cgroup: Make test_stress.sh work if run interactively + +From: Waiman Long + +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 +Signed-off-by: Tejun Heo +Signed-off-by: Greg Kroah-Hartman +--- + tools/testing/selftests/cgroup/test_stress.sh | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- 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 diff --git a/queue-5.15/series b/queue-5.15/series index ce9a9e89662..639c6c3e565 100644 --- a/queue-5.15/series +++ b/queue-5.15/series @@ -648,3 +648,4 @@ coresight-core-fix-coresight-device-probe-failure-issue.patch phy-qcom-qmp-fix-reset-controller-leak-on-probe-errors.patch net-ipa-fix-page-free-in-ipa_endpoint_trans_release.patch net-ipa-fix-page-free-in-ipa_endpoint_replenish_one.patch +kseltest-cgroup-make-test_stress.sh-work-if-run-interactively.patch -- 2.47.3