Skip to content

Commit a77d0ec

Browse files
committed
.github/workflows/04-maven-nit.yml: fix reporting error exit codes
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
1 parent 931098d commit a77d0ec

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/04-maven-nit.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,5 +111,10 @@ jobs:
111111
upsdrvctl start
112112
upsd -DDDDDD &
113113
UPSD_PID="$!"
114-
trap 'kill $UPSD_PID ; upsdrvctl stop' 0 1 2 3 15
115-
java -jar ./jNutList/target/jNutList-*-jar-with-dependencies.jar $SSL_ARGS -w --setvar driver.debug 1 localhost "${NUT_PORT}" "admin" "${TESTPASS_ADMIN}" || exit
114+
echo "Sleeping so the server can fully start"
115+
sleep 10
116+
RES=0
117+
java -jar ./jNutList/target/jNutList-*-jar-with-dependencies.jar $SSL_ARGS -w --setvar driver.debug 1 localhost "${NUT_PORT}" "admin" "${TESTPASS_ADMIN}" || RES=$?
118+
kill $UPSD_PID || true
119+
upsdrvctl stop
120+
exit $RES

0 commit comments

Comments
 (0)