File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 62
62
# Hack to honor changes to rebaseline_tests.py in the current PR
63
63
git checkout - ./tools/maint/rebaseline_tests.py
64
64
./bootstrap
65
- if ! ./tools/maint/rebaseline_tests.py --check-only; then
65
+ if ./tools/maint/rebaseline_tests.py --check-only; then
66
66
echo "Test expectations are out-of-date on the target branch."
67
67
echo "You can run './tools/maint/rebaseline_tests.py --new-branch'"
68
68
echo "and use it to create a seperate PR."
77
77
git checkout ${{ github.sha }}
78
78
git rev-parse HEAD
79
79
./bootstrap
80
- if ! ./tools/maint/rebaseline_tests.py --check-only --clear-cache; then
80
+ if ./tools/maint/rebaseline_tests.py --check-only --clear-cache; then
81
81
echo "Test expectations are out-of-date on the PR branch."
82
82
echo "You can run './tools/maint/rebaseline_tests.py' to"
83
83
echo "create a commit updating the expectations."
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ def main():
89
89
90
90
if not filenames :
91
91
print ('test expectations are up-to-date' )
92
- return 0
92
+ return 1
93
93
94
94
if args .check_only :
95
95
message = f'''Test expectations are out-of-date
@@ -120,7 +120,7 @@ def main():
120
120
121
121
print (message )
122
122
if args .check_only :
123
- return 1
123
+ return 0
124
124
125
125
if args .new_branch :
126
126
run (['git' , 'checkout' , '-b' , 'rebaseline_tests' ])
You can’t perform that action at this time.
0 commit comments