Commit a599d674 authored by Branson Stephens's avatar Branson Stephens

Added unit test for gracedb client (for search with --ligolw flag). Also added...

Added unit test for gracedb client (for search with --ligolw flag). Also added NB to helptext for --ligolw option.
parent ab673edd
...@@ -214,7 +214,7 @@ Longer strings will be truncated.""" % { ...@@ -214,7 +214,7 @@ Longer strings will be truncated.""" % {
) )
op.add_option("-l", "--ligolw", dest="ligolw", op.add_option("-l", "--ligolw", dest="ligolw",
help="Download ligolw file of combined search results (not meaningful outside of search)", help="Download ligolw file of combined search results (not meaningful outside of search). NOTE: Produces an ERROR if any of the events returned by the search do not have coinc.xml files.",
action="store_true", default=False action="store_true", default=False
) )
op.add_option("-t", "--tag-name", dest="tagName", op.add_option("-t", "--tag-name", dest="tagName",
......
...@@ -77,6 +77,13 @@ ${GRACEDB} search $GRACEID >$OUTFILE 2>&1 ...@@ -77,6 +77,13 @@ ${GRACEDB} search $GRACEID >$OUTFILE 2>&1
recordTest "search $GRACEID" "$?" "$(cat $OUTFILE)" recordTest "search $GRACEID" "$?" "$(cat $OUTFILE)"
rm $OUTFILE rm $OUTFILE
# Try a simple search with ligolw output.
#
OUTFILE=$(mktemp /tmp/tmp.XXXXXXXXX)
${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 FAR of created LM event is correct.
# #
OUTFILE=$(mktemp /tmp/tmp.XXXXXXXXX) OUTFILE=$(mktemp /tmp/tmp.XXXXXXXXX)
......
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