Skip to content

Commit 73b07a9

Browse files
authored
Fix quotes in test (#4)
* Fix quotes in test * query the first output file to pick up the 'name' value again and output it grep with start and end position constaints
1 parent cbfe71c commit 73b07a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/yq/config.vsh.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ test_resources:
6767
set -e
6868
echo "name: 'bar'" > test.yaml
6969
"$meta_executable" --input test.yaml --output output.yaml --eval '.name = "foo"'
70-
grep 'name: "foo"' output.yaml
70+
"$meta_executable" --input output.yaml --output output2.yaml --eval '.name'
71+
grep "^foo$" output2.yaml
7172
7273
engines:
7374
- type: docker

0 commit comments

Comments
 (0)