Skip to content

Commit

Permalink
op-test.sh - exit with correct status
Browse files Browse the repository at this point in the history
Signed-off-by: Richard T Bonhomme <[email protected]>
  • Loading branch information
TinCanTech committed Apr 11, 2022
1 parent f79b66a commit ea666d5
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions op-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,26 +105,20 @@ run_unit_test ()

# Start unit tests
log ">>> BEGIN unit tests:"

if [ "${dry_run}" ]; then
log "<<dry-run>> sh ${utest_bin} ${verb}"
estat=1
else
log ">>>>>>: sh ${utest_bin} ${verb}"
sh "${utest_bin}" "${verb}"

#if sh "${utest_bin}" "${verb}" -v; then
# estat=0
#else
# estat=1
#fi

# TODO: dispose of 'estat' garbage
estat=1 # This is a bug and an error .. fix it.
if sh "${utest_bin}" "${verb}"; then
log "OK"
estat=0
else
log "FAIL"
estat=1
fi
fi

log "<<< END unit tests:"

else
log "unit-test abandoned"
estat=1
Expand Down

0 comments on commit ea666d5

Please sign in to comment.