test-basic.sh: fix jq filter for new json output

The test-basic.sh test was failing on machines that had jq installed.
Will have to make sure to add it to the PR tester.

Closes: #360
Approved by: cgwalters
This commit is contained in:
Jonathan Lebon 2016-06-29 11:18:36 -04:00 committed by Atomic Bot
parent 7697702aaa
commit 4f68f73b04

View File

@ -46,7 +46,7 @@ echo "ok status shows right version"
rpm-ostree status --json > status.json
json-glib-format status.json
if test -x /usr/bin/jq; then
jq '.[0].version' < status.json > version.txt
jq '.deployments[0].version' < status.json > version.txt
assert_file_has_content version.txt '1\.0\.10'
fi