tests/module: nix-ify
PATCH 1/1 tests/module: nix-ify
Use "#!/usr/bin/env bash" instead of "#!/bin/bash". This is necessary for nix environments as they only provide /usr/bin/env at the standard location.
---
I just saw this break my allyes test build. I had usually done it in debian, but now that its on NixOs; this patch corrects the build error.
--- lib/tests/module/gen_test_kallsyms.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/tests/module/gen_test_kallsyms.sh +1 -1
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash TARGET=$(basename $1) DIR=lib/tests/module
---
base-commit: ffd294d346d185b70e28b1a28abe367bbfe53c04
change-id: 20250122-jag-nix-ify-1aa2061c4ad8
Best regards,
Signature · 1 line
Joel Granados <[email protected]>
Quoted 5 lines · Joel Granados
Use "#!/usr/bin/env bash" instead of "#!/bin/bash". This is necessary for nix environments as they only provide
/usr/bin/envat the standard location.Signed-off-by Joel Granados <[email protected]>
This can go through the modules tree.
Luis
Quoted 27 lines
---
I just saw this break my allyes test build. I had usually done it in debian, but now that its on NixOs; this patch corrects the build error.--- lib/tests/module/gen_test_kallsyms.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)lib/tests/module/gen_test_kallsyms.sh +1
-2@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash TARGET=$(basename $1) DIR=lib/tests/module ---base-commit:
ffd294d346d185b70e28b1a28abe367bbfe53c04
change-id: 20250122-jag-nix-ify-1aa2061c4ad8Best regards,
Signature · 1 line
Joel Granados <[email protected]>
Petr Pavlu
maintainerQuoted 10 lines · Luis Chamberlain
Quoted 5 lines · Joel Granados
Use "#!/usr/bin/env bash" instead of "#!/bin/bash". This is necessary for nix environments as they only provide
/usr/bin/envat the standard location.Signed-off-by Joel Granados <[email protected]>Acked-by Luis Chamberlain <[email protected]>This can go through the modules tree.
Queued on modules-fixes.
Signature · 2 lines
Thanks, Petr