Skip to content

Commit fd38711

Browse files
committed
ci: make CI job fail when check-deps.sh script fails
Previously the check-deps.sh would write information about unexpected dependencies to stderr, but return exit code 0, so the error would be ignored by CI. Now it will return code 1 and cause CI to fail if unexpected dependencies are detected.
1 parent d51edec commit fd38711

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

contrib/devtools/check-deps.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,10 @@ cd "$BUILD_DIR/src"
194194
extract_symbols "$TEMP_DIR"
195195
if check_libraries "$TEMP_DIR"; then
196196
echo "Success! No unexpected dependencies were detected."
197+
RET=0
197198
else
198199
echo >&2 "Error: Unexpected dependencies were detected. Check previous output."
200+
RET=1
199201
fi
200202
rm -r "$TEMP_DIR"
203+
exit $RET

0 commit comments

Comments
 (0)