diff options
author | Nataliia Solomko <natalirs1985@gmail.com> | 2024-06-18 11:55:53 +0300 |
---|---|---|
committer | Nataliia Solomko <natalirs1985@gmail.com> | 2024-06-18 15:55:30 +0300 |
commit | c18b30dab33ff110eb439e51f784b2b272e8359f (patch) | |
tree | 3a59bdc5aad9594a6df355077b3c5971b0d4e8cb | |
parent | 2224890a5be141daf9dd5613de0ebb81bb706db0 (diff) | |
download | vyos-1x-c18b30dab33ff110eb439e51f784b2b272e8359f.tar.gz vyos-1x-c18b30dab33ff110eb439e51f784b2b272e8359f.zip |
T6492: Check if all migrators have the executable bit set
-rw-r--r-- | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -78,7 +78,7 @@ vyshim: $(MAKE) -C $(SHIM_DIR) .PHONY: all -all: clean interface_definitions op_mode_definitions check test j2lint vyshim +all: clean interface_definitions op_mode_definitions check test j2lint vyshim check_migration_scripts_executable .PHONY: check .ONESHELL: @@ -103,6 +103,12 @@ test: set -e; python3 -m compileall -q -x '/vmware-tools/scripts/, /ppp/' . PYTHONPATH=python/ python3 -m "nose" --with-xunit src --with-coverage --cover-erase --cover-xml --cover-package src/conf_mode,src/op_mode,src/completion,src/helpers,src/validators,src/tests --verbose +.PHONY: check_migration_scripts_executable +.ONESHELL: +check_migration_scripts_executable: + @echo "Checking if migration scripts have executable bit set..." + find src/migration-scripts -type f -not -executable -print -exec false {} + || sh -c 'echo "Found files that are not executable! Add permissions." && exit 1' + .PHONY: j2lint j2lint: ifndef J2LINT |