Skip to content

Commit 1eed96a

Browse files
author
Dilawar Singh
committed
if a script takes more than 5 minutes, kill it and do not consider it failure.
Add to blacklist and check locally.
1 parent 2996527 commit 1eed96a

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

_travis/run_scripts.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,14 @@ for f in `cat ./TORUN`; do
3131
if [ "$status" -eq "0" ]; then # success
3232
echo "|| Success. Written to $SUCCEEDED"
3333
echo "- [x] $f" >> $SUCCEEDED
34-
elif [ "$status" -eq "124" ]; then # timeout
34+
elif [ "$status" -gt "128" ]; then # timeout
3535
# If there is timeout then add to BLACKLISTED
36-
echo "|| Timed out, limit $TIMEOUT minutes"
36+
echo "|| Killed by signal status: $status"
3737
echo "- [ ] $f" >> $BLACKLISTED
3838
sed -i 's/^/\ \ /' $TEMP
3939
printf "\n\`i\`\`\n" >> $BLACKLISTED
4040
cat $TEMP >> $BLACKLISTED
4141
printf "\`\`\`\n" >> $BLACKLISTED
42-
echo "|| Took too much time. Blacklisted";
4342
else # Failed
4443
echo "|| Failed with status "$status" "
4544
echo "- [ ] $f" >> $FAILED
@@ -57,7 +56,7 @@ echo "Following scripts were successful"
5756
cat $SUCCEEDED
5857

5958
if [ -f $BLACKLISTED ]; then
60-
echo "Following scripts were blacklisted due to timeout"
59+
echo "Following scripts were blacklisted due to timeout or singal interrupt"
6160
cat $BLACKLISTED
6261
fi
6362

0 commit comments

Comments
 (0)