Patch "selftests/net: change shebang to bash to support "source"" has been added to the 6.7-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    selftests/net: change shebang to bash to support "source"

to the 6.7-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     selftests-net-change-shebang-to-bash-to-support-sour.patch
and it can be found in the queue-6.7 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 7ae6412cb7a65e9d759ff2f06f8ccfcfd6dfa3f2
Author: Yujie Liu <yujie.liu@xxxxxxxxx>
Date:   Fri Dec 29 21:19:31 2023 +0800

    selftests/net: change shebang to bash to support "source"
    
    [ Upstream commit 05d92cb0e919239c29b3a26da1f76f1e18fed7d3 ]
    
    The patch set [1] added a general lib.sh in net selftests, and converted
    several test scripts to source the lib.sh.
    
    unicast_extensions.sh (converted in [1]) and pmtu.sh (converted in [2])
    have a /bin/sh shebang which may point to various shells in different
    distributions, but "source" is only available in some of them. For
    example, "source" is a built-it function in bash, but it cannot be
    used in dash.
    
    Refer to other scripts that were converted together, simply change the
    shebang to bash to fix the following issues when the default /bin/sh
    points to other shells.
    
    not ok 51 selftests: net: unicast_extensions.sh # exit=1
    
    v1 -> v2:
      - Fix pmtu.sh which has the same issue as unicast_extensions.sh,
        suggested by Hangbin
      - Change the style of the "source" line to be consistent with other
        tests, suggested by Hangbin
    
    Link: https://lore.kernel.org/all/20231202020110.362433-1-liuhangbin@xxxxxxxxx/ [1]
    Link: https://lore.kernel.org/all/20231219094856.1740079-1-liuhangbin@xxxxxxxxx/ [2]
    Reported-by: kernel test robot <oliver.sang@xxxxxxxxx>
    Fixes: 378f082eaf37 ("selftests/net: convert pmtu.sh to run it in unique namespace")
    Fixes: 0f4765d0b48d ("selftests/net: convert unicast_extensions.sh to run it in unique namespace")
    Signed-off-by: Yujie Liu <yujie.liu@xxxxxxxxx>
    Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@xxxxxxxxx>
    Reviewed-by: Hangbin Liu <liuhangbin@xxxxxxxxx>
    Reviewed-by: Muhammad Usama Anjum <usama.anjum@xxxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20231229131931.3961150-1-yujie.liu@xxxxxxxxx
    Signed-off-by: Jakub Kicinski <kuba@xxxxxxxxxx>
    Stable-dep-of: e71e016ad0f6 ("selftests: net: fix tcp listener handling in pmtu.sh")
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/tools/testing/selftests/net/pmtu.sh b/tools/testing/selftests/net/pmtu.sh
index 8518eaacf4b5..3f118e3f1c66 100755
--- a/tools/testing/selftests/net/pmtu.sh
+++ b/tools/testing/selftests/net/pmtu.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 # SPDX-License-Identifier: GPL-2.0
 #
 # Check that route PMTU values match expectations, and that initial device MTU
@@ -198,7 +198,7 @@
 # - pmtu_ipv6_route_change
 #	Same as above but with IPv6
 
-source ./lib.sh
+source lib.sh
 
 PAUSE_ON_FAIL=no
 VERBOSE=0
diff --git a/tools/testing/selftests/net/unicast_extensions.sh b/tools/testing/selftests/net/unicast_extensions.sh
index b7a2cb9e7477..f52aa5f7da52 100755
--- a/tools/testing/selftests/net/unicast_extensions.sh
+++ b/tools/testing/selftests/net/unicast_extensions.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 # SPDX-License-Identifier: GPL-2.0
 #
 # By Seth Schoen (c) 2021, for the IPv4 Unicast Extensions Project
@@ -28,7 +28,7 @@
 # These tests provide an easy way to flip the expected result of any
 # of these behaviors for testing kernel patches that change them.
 
-source ./lib.sh
+source lib.sh
 
 # nettest can be run from PATH or from same directory as this selftest
 if ! which nettest >/dev/null; then




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux