Skip to content

Commit

Permalink
T6492: Check if all migrators have the executable bit set
Browse files Browse the repository at this point in the history
  • Loading branch information
natali-rs1985 committed Jun 18, 2024
1 parent 2224890 commit 55d2300
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 migration_scripts

.PHONY: check
.ONESHELL:
Expand All @@ -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: migration_scripts
.ONESHELL:
migration_scripts:
@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
Expand Down

0 comments on commit 55d2300

Please sign in to comment.