From cff679061de2b9c884671539006edd1248504b73 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 7 Mar 2022 18:23:25 +0300 Subject: Fix tests for commands output in JSON format --- tests/status.testscript | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'tests/status.testscript') diff --git a/tests/status.testscript b/tests/status.testscript index 2977e4f..e5e111b 100644 --- a/tests/status.testscript +++ b/tests/status.testscript @@ -30,12 +30,14 @@ deinit += -d prj $* >'prj configured 0.1.0-a.0.19700101000000'; - $* --stdout-format 'json' >>/~"%EOO%"; + # While at it, test printing the status in the JSON format. + # + $* --stdout-format 'json' >>~%EOO%; [ { "configuration": { "id": 1, - "path": "$~/prj-cfg", + % "path": ".+prj-cfg",% "name": "cfg" }, "packages": [ @@ -72,12 +74,14 @@ deinit += -d prj prj configured 0.1.0-a.0.19700101000000 EOO - $* --all --stdout-format 'json' >>/~"%EOO%"; + # While at it, test printing the status in the JSON format. + # + $* --all --stdout-format 'json' >>~%EOO%; [ { "configuration": { "id": 1, - "path": "$~/prj-cfg1", + % "path": ".+prj-cfg1",% "name": "cfg1" }, "packages": [ @@ -89,7 +93,7 @@ deinit += -d prj { "configuration": { "id": 2, - "path": "$~/prj-cfg2", + % "path": ".+prj-cfg2",% "name": "cfg2" }, "packages": [ -- cgit v1.1