File tree 3 files changed +12
-8
lines changed
3 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 79
79
id : check_update_meson
80
80
run : |
81
81
python3 tools/update-meson.py
82
- make test-git-no-uncommitted-changes
82
+ ./tools/ test-git-no-uncommitted-changes
83
83
continue-on-error : true
84
84
85
85
- name : Show files changed by update-meson
Original file line number Diff line number Diff line change @@ -254,13 +254,7 @@ TEST_TARGET = $@
254
254
TEST = ./sage -t --logfile=$(TEST_LOG ) $(TEST_FLAGS ) --optional=$(TEST_OPTIONAL ) $(TEST_FILES )
255
255
256
256
test-git-no-uncommitted-changes :
257
- @UNCOMMITTED=$$(git status --porcelain ) ; \
258
- if [ -n " $$ UNCOMMITTED" ]; then \
259
- echo " Error: the git repo has uncommitted changes:" ; \
260
- echo " $$ UNCOMMITTED" ; \
261
- echo ; \
262
- exit 1; \
263
- fi
257
+ ./tools/test-git-no-uncommitted-changes
264
258
265
259
test : all
266
260
@echo ' ### make $(TEST_TARGET): Running $(TEST)' >> $(TEST_LOG )
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env sh
2
+ # Test that there is no uncommitted changes in the repository. Return failure if there is.
3
+ # Can also be invoked with `make test-git-no-uncommitted-changes` from top level.
4
+ UNCOMMITTED=" $( git status --porcelain) " ;
5
+ if [ -n " $UNCOMMITTED " ]; then
6
+ echo " Error: the git repo has uncommitted changes:" ;
7
+ echo " $UNCOMMITTED " ;
8
+ echo ;
9
+ exit 1;
10
+ fi
You can’t perform that action at this time.
0 commit comments