diff mbox series

[net] selftests: rds: move include.sh to TEST_FILES

Message ID 20240927041349.81216-1-liuhangbin@gmail.com
State Accepted
Commit 8ed7cf66f4841bcc8c15a89be0732b933703b51c
Headers show
Series [net] selftests: rds: move include.sh to TEST_FILES | expand

Commit Message

Hangbin Liu Sept. 27, 2024, 4:13 a.m. UTC
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.

Fixes: 3ade6ce1255e ("selftests: rds: add testing infrastructure")
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
---
 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

Comments

Maximilian Heyne Nov. 22, 2024, 3:01 p.m. UTC | #1
Hi Hangbin,

On Fri, Sep 27, 2024 at 12:13:49PM +0800, Hangbin Liu wrote:
> 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.
> 
> Fixes: 3ade6ce1255e ("selftests: rds: add testing infrastructure")
> Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
> ---
>  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
> 
> diff --git a/tools/testing/selftests/net/rds/Makefile b/tools/testing/selftests/net/rds/Makefile
> index da9714bc7aad..cf30307a829b 100644
> --- a/tools/testing/selftests/net/rds/Makefile
> +++ b/tools/testing/selftests/net/rds/Makefile
> @@ -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.

>  
> +TEST_FILES := include.sh
> +
>  EXTRA_CLEAN := /tmp/rds_logs
>  
>  include ../../lib.mk
> diff --git a/tools/testing/selftests/net/rds/test.py b/tools/testing/selftests/net/rds/test.py
> old mode 100644
> new mode 100755
> -- 
> 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
Hangbin Liu Nov. 23, 2024, 1:54 a.m. UTC | #2
On Fri, Nov 22, 2024 at 03:01:29PM +0000, Maximilian Heyne wrote:
> Hi Hangbin,
> 
> On Fri, Sep 27, 2024 at 12:13:49PM +0800, Hangbin Liu wrote:
> > 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.
> > 
> > Fixes: 3ade6ce1255e ("selftests: rds: add testing infrastructure")
> > Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
> > ---
> >  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
> > 
> > diff --git a/tools/testing/selftests/net/rds/Makefile b/tools/testing/selftests/net/rds/Makefile
> > index da9714bc7aad..cf30307a829b 100644
> > --- a/tools/testing/selftests/net/rds/Makefile
> > +++ b/tools/testing/selftests/net/rds/Makefile
> > @@ -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.

I was not aware of this. Thanks for the report. I will post a fix for this.

Thanks
Hangbin
diff mbox series

Patch

diff --git a/tools/testing/selftests/net/rds/Makefile b/tools/testing/selftests/net/rds/Makefile
index da9714bc7aad..cf30307a829b 100644
--- a/tools/testing/selftests/net/rds/Makefile
+++ b/tools/testing/selftests/net/rds/Makefile
@@ -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
diff --git a/tools/testing/selftests/net/rds/test.py b/tools/testing/selftests/net/rds/test.py
old mode 100644
new mode 100755