Skip to content

Commit

Permalink
test: add a test to ensure R contains time keys
Browse files Browse the repository at this point in the history
  • Loading branch information
dongahn committed Mar 4, 2020
1 parent a10f9dd commit 0adf5ca
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions t/t6001-match-formats.t
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,14 @@ test_expect_success "--match-format=pretty_simple works" '
test -s o9.simple
'

test_expect_success "rv1 contains starttime and expiration keys" '
echo "match allocate ${jobspec}" > in10.txt &&
echo "quit" >> in10.txt &&
${query} -L ${tiny_grug} -F rv1_nosched -d -t o10 < in10.txt &&
starttime=$(cat o10 | grep -v "INFO:" | jq ".execution.starttime") &&
expiration=$(cat o10 | grep -v "INFO:" | jq ".execution.expiration") &&
test ${starttime} -eq 0 &&
test ${expiration} -eq 3600
'

test_done

0 comments on commit 0adf5ca

Please sign in to comment.