From 4f68f73b041266407a050aca4cf06820362552a7 Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Wed, 29 Jun 2016 11:18:36 -0400 Subject: [PATCH] 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 --- tests/check/test-basic.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/check/test-basic.sh b/tests/check/test-basic.sh index 95be69c0..1ccb47b2 100755 --- a/tests/check/test-basic.sh +++ b/tests/check/test-basic.sh @@ -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