Skip to content

Commit b2ecc71

Browse files
committed
simple test will report all day success
1 parent b54998f commit b2ecc71

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/tester/tester.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ SLACK_TOKEN=${SLACK_TOKEN:-""}
1515
SLACK_CHANNEL=${SLACK_CHANNEL:-"#github"}
1616
SLACK_USER=${SLACK_USER:-"NCSA Build"}
1717

18+
source ./my_env.sh
1819

1920
post_message() {
2021
printf "$1\n"
@@ -54,6 +55,8 @@ while [ $FILE_UPLOADED = 0 ]; do
5455
echo "File upload not PROCESSED after 2 minutes. There may be a problem. Deleting dataset."
5556
curl -X DELETE $CLOWDER_URL/api/datasets/$DATASET_ID?key=$CLOWDER_KEY
5657
post_message "Upload+extract test script failing on $CLOWDER_URL\/files\/$FILE_ID (status is not PROCESSED)"
58+
export SUCCESS=0
59+
env > ./my_env.sh
5760
exit 1
5861
fi
5962
echo "File upload not complete; checking again in 10 seconds."
@@ -83,14 +86,16 @@ while [ $FILE_EXTRACTED -eq 0 ]; do
8386
echo "File extraction not DONE after 4 minutes. There may be a problem. Deleting dataset."
8487
curl -X DELETE $CLOWDER_URL/api/datasets/$DATASET_ID?key=$CLOWDER_KEY
8588
post_message "Upload+extract test script failing on $CLOWDER_URL/files/$FILE_ID (extractor not DONE)"
89+
export SUCCESS=0
90+
env > ./my_env.sh
8691
exit 1
8792
fi
8893
echo "File extraction not complete; checking again in 10 seconds."
8994
sleep 10
9095
done
9196
echo "File extraction complete."
9297

93-
source ./my_env.sh
98+
9499
nsuccess=$(($SUCCESS+1))
95100
if [ $nsuccess = 12 ]; then
96101
nsuccess=0

0 commit comments

Comments
 (0)