Skip to content

Commit

Permalink
Enh: make test less flaky, although still not perfect
Browse files Browse the repository at this point in the history
  • Loading branch information
alanfranz committed Mar 29, 2018
1 parent 40b4497 commit 947b3e8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packaging/run_tests
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,7 @@ ${APT_CMD} remove -y tcpdump
${APT_CMD} install -y tcpdump

# here we suppose nothing is done, since an update isn't triggered just for the missing lists.
BEFORE="$(date +%s)"
${APT_CMD} -y dist-upgrade
AFTER="$(date +%s)"
[ "$(( $AFTER - $BEFORE ))" -gt 2 ] && { echo "too slow, probably updated."; exit 1; }

# if it fails, we suppose an update was triggered.
${APT_CMD} -y dist-upgrade 2>&1 | grep -v InRelease

${APT_CMD} remove -y --purge tcpdump openssl wget

0 comments on commit 947b3e8

Please sign in to comment.