diff mbox series

selftests/cgroup: use bash in test_cpuset_v1_hp.sh

Message ID 20250204192956.50589-1-bharadwaj.raju777@gmail.com (mailing list archive)
State New
Headers show
Series selftests/cgroup: use bash in test_cpuset_v1_hp.sh | expand

Commit Message

Bharadwaj Raju Feb. 4, 2025, 7:29 p.m. UTC
The script uses non-POSIX features like `[[` for conditionals and hence
does not work when run with a POSIX /bin/sh.

Change the shebang to /bin/bash instead, like the other tests in cgroup.

Signed-off-by: Bharadwaj Raju <bharadwaj.raju777@gmail.com>
---
 tools/testing/selftests/cgroup/test_cpuset_v1_hp.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Tejun Heo Feb. 4, 2025, 7:37 p.m. UTC | #1
On Wed, Feb 05, 2025 at 12:59:53AM +0530, Bharadwaj Raju wrote:
> The script uses non-POSIX features like `[[` for conditionals and hence
> does not work when run with a POSIX /bin/sh.
> 
> Change the shebang to /bin/bash instead, like the other tests in cgroup.
> 
> Signed-off-by: Bharadwaj Raju <bharadwaj.raju777@gmail.com>

Applied to cgroup/for-6.14-fixes.

Thanks.
diff mbox series

Patch

diff --git a/tools/testing/selftests/cgroup/test_cpuset_v1_hp.sh b/tools/testing/selftests/cgroup/test_cpuset_v1_hp.sh
index 3f45512fb512..7406c24be1ac 100755
--- a/tools/testing/selftests/cgroup/test_cpuset_v1_hp.sh
+++ b/tools/testing/selftests/cgroup/test_cpuset_v1_hp.sh
@@ -1,4 +1,4 @@ 
-#!/bin/sh
+#!/bin/bash
 # SPDX-License-Identifier: GPL-2.0
 #
 # Test the special cpuset v1 hotplug case where a cpuset become empty of