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:
parent
7697702aaa
commit
4f68f73b04
@ -46,7 +46,7 @@ echo "ok status shows right version"
|
|||||||
rpm-ostree status --json > status.json
|
rpm-ostree status --json > status.json
|
||||||
json-glib-format status.json
|
json-glib-format status.json
|
||||||
if test -x /usr/bin/jq; then
|
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'
|
assert_file_has_content version.txt '1\.0\.10'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user