selftests: rds: move include.sh to TEST_FILES
Subsystems (5)
PATCH 1/1 selftests: rds: move include.sh to TEST_FILES
The include.sh file is generated for inclusion and should not be executable. Otherwise, it will be added to kselftest-list.txt. Additionally, add the executable bit for test.py at the same time to ensure proper functionality.
--- tools/testing/selftests/net/rds/Makefile | 3 ++- tools/testing/selftests/net/rds/test.py | 0 2 files changed, 2 insertions(+), 1 deletion(-) mode change 100644 => 100755 tools/testing/selftests/net/rds/test.py
tools/testing/selftests/net/rds/Makefile +2 -1
@@ -4,9 +4,10 @@ all: @echo mk_build_dir="$(shell pwd)" > include.sh TEST_PROGS := run.sh \ - include.sh \ test.py +TEST_FILES := include.sh + EXTRA_CLEAN := /tmp/rds_logs include ../../lib.mk
tools/testing/selftests/net/rds/test.py +0 -0
Signature · 1 line
2.39.3 (Apple Git-146)
This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:
Quoted 8 lines · On Fri, 27 Sep 2024 12:13:49 +0800 you wrote:
The
include.shfile is generated for inclusion and should not be executable. Otherwise, it will be added to kselftest-list.txt. Additionally, add the executable bit fortest.pyat the same time to ensure proper functionality.Fixes 3ade6ce1255e ("selftests: rds: add testing infrastructure")Signed-off-by Hangbin Liu <[email protected]>[...]
Here is the summary with links:
- [net] selftests: rds: move include.sh to TEST_FILES
https://git.kernel.org/netdev/net/c/8ed7cf66f484
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
Hi Hangbin,
Quoted 17 lines · Hangbin Liu
The
include.shfile is generated for inclusion and should not be executable. Otherwise, it will be added to kselftest-list.txt. Additionally, add the executable bit fortest.pyat the same time to ensure proper functionality.Fixes 3ade6ce1255e ("selftests: rds: add testing infrastructure")Signed-off-by Hangbin Liu <[email protected]>--- tools/testing/selftests/net/rds/Makefile | 3 ++- tools/testing/selftests/net/rds/test.py | 0 2 files changed, 2 insertions(+), 1 deletion(-) mode change 100644 => 100755 tools/testing/selftests/net/rds/test.pytools/testing/selftests/net/rds/Makefile +0
-0
tools/testing/selftests/net/rds/Makefile all: · line 7
Quoted 5 lines
tools/testing/selftests/net/rds/Makefile +0
-1@@ -4,9 +4,10 @@ all: @echo mk_build_dir="$(shell pwd)" > include.sh TEST_PROGS := run.sh \ - include.sh \ test.py
Should test.py also move down to TEST_FILES? I think run.sh is executing test.py anyway but does a couple of sanity checks before, so I think this it's not necessary to let the runner execute test.py standalone.
Quoted 12 lines
tools/testing/selftests/net/rds/Makefile +2
-0+TEST_FILES := include.sh + EXTRA_CLEAN := /tmp/rds_logs include ../../lib.mktools/testing/selftests/net/rds/test.py +0
-0Signature · 1 line
2.39.3 (Apple Git-146)
Thanks,
Max
Amazon Web Services Development Center Germany GmbH Krausenstr. 38
10117 Berlin
Geschaeftsfuehrung: Christian Schlaeger, Jonathan Weiss Eingetragen am Amtsgericht Charlottenburg unter HRB 257764 B
Sitz: Berlin
Ust-ID: DE 365 538 597
Quoted 22 lines · Maximilian Heyne
Hi Hangbin,
Quoted 19 lines · Hangbin Liu
The
include.shfile is generated for inclusion and should not be executable. Otherwise, it will be added to kselftest-list.txt. Additionally, add the executable bit fortest.pyat the same time to ensure proper functionality.Fixes 3ade6ce1255e ("selftests: rds: add testing infrastructure")Signed-off-by Hangbin Liu <[email protected]>--- tools/testing/selftests/net/rds/Makefile | 3 ++- tools/testing/selftests/net/rds/test.py | 0 2 files changed, 2 insertions(+), 1 deletion(-) mode change 100644 => 100755 tools/testing/selftests/net/rds/test.pytools/testing/selftests/net/rds/Makefile +0
-0@@ -4,9 +4,10 @@ all: @echo mk_build_dir="$(shell pwd)" > include.sh
Quoted 7 lines
tools/testing/selftests/net/rds/Makefile all: · line 7
Quoted 3 lines
tools/testing/selftests/net/rds/Makefile +0
-1TEST_PROGS := run.sh \ - include.sh \ test.pyShould
test.pyalso move down toTEST_FILES? I thinkrun.shis executingtest.pyanyway but does a couple of sanity checks before, so I think this it's not necessary to let the runner executetest.pystandalone.
I was not aware of this. Thanks for the report. I will post a fix for this.
Thanks
Hangbin