Skip to contentSkip to conversation

selftests/vm: fix: make check_config.sh executable

PATCH Superseded John Hubbard 2 participants 5 messages Oct 2, 2020

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selftests/vm: fix: make check_config.sh executable

commit 30fb9454ab23 ("selftests/vm: hmm-tests: remove the libhugetlbfs dependency") created the new check_config.sh file without the execute bits set. This is a problem because the Makefile runs it with "./", so now "make" is failing in that directory.

The posted patch [1] does seem to have it as an executable file, so I'm not sure how this happened. But in any case, make check_config.sh executable again, so that "make" in selftests/vm works once again.

[1] https://lore.kernel.org/linux-doc/[email protected]/

Fixes commit 30fb9454ab23 ("selftests/vm: hmm-tests: remove the libhugetlbfs dependency")

---

Hi,

This applies to today's 20201001) linux-next. I forgot if this needs to be a separate patch or if it can be fixed up in Andrew's tree.

thanks,
John Hubbard
NVIDIA

 tools/testing/selftests/vm/check_config.sh | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
 mode change 100644 => 100755 tools/testing/selftests/vm/check_config.sh
tools/testing/selftests/vm/check_config.sh +0 -0
old mode 100644
new mode 100755
Signature · 1 line
2.28.0
#1 lore raw
Quoted 11 lines · John Hubbard

commit 30fb9454ab23 ("selftests/vm: hmm-tests: remove the libhugetlbfs dependency") created the new check_config.sh file without the execute bits set. This is a problem because the Makefile runs it with "./", so now "make" is failing in that directory.

The posted patch [1] does seem to have it as an executable file, so I'm not sure how this happened. But in any case, make check_config.sh executable again, so that "make" in selftests/vm works once again.

[1] https://lore.kernel.org/linux-doc/[email protected]/

Quoted 9 lines
Fixes commit 30fb9454ab23 ("selftests/vm: hmm-tests: remove the libhugetlbfs dependency")

---

Hi,

This applies to today's 20201001) linux-next. I forgot if this needs to be a separate patch or if it can be fixed up in Andrew's tree.

hmm, in fact I think something similar also happened to run_vmtest.sh, in the same directory. Please let me know if a patch is needed there, or if you can just fix up this one or the tree or something?

tools/testing/selftests/vm/check_config.sh

Quoted 13 lines

thanks,
John Hubbard
NVIDIA

  tools/testing/selftests/vm/check_config.sh | 0
  1 file changed, 0 insertions(+), 0 deletions(-)

mode change 100644 => 100755 tools/testing/selftests/vm/check_config.sh

tools/testing/selftests/vm/check_config.sh +0 -0
old mode 100644
new mode 100755

thanks,

Signature · 2 lines
John Hubbard
NVIDIA
#2 lore raw
In reply to John Hubbard

Hi John,

Quoted 9 lines · On Thu, 1 Oct 2020 23:48:11 -0700 John Hubbard <[email protected]> wrote:

commit 30fb9454ab23 ("selftests/vm: hmm-tests: remove the libhugetlbfs dependency") created the new check_config.sh file without the execute bits set. This is a problem because the Makefile runs it with "./", so now "make" is failing in that directory.

The posted patch [1] does seem to have it as an executable file, so I'm not sure how this happened. But in any case, make check_config.sh executable again, so that "make" in selftests/vm works once again.

The correct fix is to make sure that the Makefile runs it explicitly with a shell because is such a patch is applied with patch(1), the execute bit will not be preserved.

See e.g. in the top level Makefile:

	$(CONFIG_SHELL) $(srctree)/scripts/gen_autoksyms.sh $@
Signature · 2 lines
Cheers,
Stephen Rothwell
#3 lore raw
Quoted 13 lines · Stephen Rothwell

Hi John,

Quoted 9 lines · On Thu, 1 Oct 2020 23:48:11 -0700 John Hubbard <[email protected]> wrote:

commit 30fb9454ab23 ("selftests/vm: hmm-tests: remove the libhugetlbfs dependency") created the new check_config.sh file without the execute bits set. This is a problem because the Makefile runs it with "./", so now "make" is failing in that directory.

The posted patch [1] does seem to have it as an executable file, so I'm not sure how this happened. But in any case, make check_config.sh executable again, so that "make" in selftests/vm works once again.

Quoted 8 lines

The correct fix is to make sure that the Makefile runs it explicitly with a shell because is such a patch is applied with patch(1), the execute bit will not be preserved.

See e.g. in the top level Makefile:

	$(CONFIG_SHELL) $(srctree)/scripts/gen_autoksyms.sh $@

OK...we should also fix it anyway, seeing as how the run_vmtest.sh also needs the execute bit re-set, yes?

So I guess I should send a patch that does:

* chmod +x on both run_vmtest.sh and check_config.sh, plus

* invoke check_config.sh via $(CONFIG_SHELL) from the Makefile.

Does that sound about right?

thanks,

Signature · 2 lines
John Hubbard
NVIDIA
#4 lore raw
Quoted 18 lines · John Hubbard
Quoted 17 lines · Stephen Rothwell

Hi John,

Quoted 9 lines · On Thu, 1 Oct 2020 23:48:11 -0700 John Hubbard <[email protected]> wrote:

commit 30fb9454ab23 ("selftests/vm: hmm-tests: remove the libhugetlbfs dependency") created the new check_config.sh file without the execute bits set. This is a problem because the Makefile runs it with "./", so now "make" is failing in that directory.

The posted patch [1] does seem to have it as an executable file, so I'm not sure how this happened. But in any case, make check_config.sh executable again, so that "make" in selftests/vm works once again.

The correct fix is to make sure that the Makefile runs it explicitly with a shell because is such a patch is applied with patch(1), the execute bit will not be preserved.

Quoted 8 lines
Quoted 4 lines

See e.g. in the top level Makefile:

    $(CONFIG_SHELL) $(srctree)/scripts/gen_autoksyms.sh $@

OK...we should also fix it anyway, seeing as how the run_vmtest.sh also needs the execute bit re-set, yes?

...and I should add that I'm stuck in a non-Kbuild system, here. So $(CONFIG_SHELL) is not available, sigh.

Quoted 9 lines

So I guess I should send a patch that does:

* chmod +x on both run_vmtest.sh and check_config.sh, plus

* invoke check_config.sh via $(CONFIG_SHELL) from the Makefile.

Does that sound about right?

thanks,

thanks,

Signature · 2 lines
John Hubbard
NVIDIA