Commit 72d5ec72 authored by Tanner Prestegard's avatar Tanner Prestegard

Bugfixes to CLI test script

parent f409df5e
......@@ -104,13 +104,13 @@ ${GRACEDB} search $GRACEID --ligolw >$OUTFILE 2>&1
recordTest "search $GRACEID --ligolw" "$?" "$(cat $OUTFILE)"
rm $OUTFILE
# Make sure FAR of created LM event is correct.
# Make sure GPS time of created LM event is correct.
OUTFILE=$(mktemp /tmp/tmp.XXXXXXXXX)
${GRACEDB} search "--columns=gpstime" $GRACEID > $OUTFILE 2>&1
RETCODE=$?
if [ $RETCODE == 0 ]
then
if [ "$(grep -v '#' <$OUTFILE)" == 971609248.152 ]
if [ "$(grep -v '#' <$OUTFILE)" == 971609248.151741 ]
then
RETCODE=0
else
......@@ -128,13 +128,13 @@ recordTest "replace $GRACEID" "$RETCODE" "$(cat $OUTFILE)"
rm $OUTFILE
# Make sure FAR of replaced LM event is correct.
# Make sure GPS time of replaced LM event is correct.
OUTFILE=$(mktemp /tmp/tmp.XXXXXXXXX)
${GRACEDB} search "--columns=gpstime" $GRACEID > $OUTFILE 2>&1
RETCODE=$?
if [ $RETCODE == 0 ]
then
if [ "$(grep -v '#' <$OUTFILE)" == 971609249.152 ]
if [ "$(grep -v '#' <$OUTFILE)" == 971609249.151741 ]
then
RETCODE=0
else
......@@ -146,7 +146,7 @@ rm $OUTFILE
# Upload a file
OUTFILE=$(mktemp /tmp/tmp.XXXXXXXXX)
${GRACEDB} --tag-name=tag_test upload $GRACEID "$TEST_DATA_DIR/upload.data.gz" > $OUTFILE 2>&1
${GRACEDB} --tag-name=tag_test upload $GRACEID "$TEST_DATA_DIR/upload.data.gz" "test comment" > $OUTFILE 2>&1
recordTest "upload file $GRACEID" "$?" "$(cat $OUTFILE)"
rm $OUTFILE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment