Skip to content
Snippets Groups Projects
Commit 9451c221 authored by nimrod's avatar nimrod
Browse files

- Fix test on Travis CI.

parent cd1c084f
No related branches found
No related tags found
No related merge requests found
...@@ -9,9 +9,10 @@ export name='John' ...@@ -9,9 +9,10 @@ export name='John'
test "$(echo 'Hello {{ name if name is defined else 'world' }}.' | template)" = "Hello John." test "$(echo 'Hello {{ name if name is defined else 'world' }}.' | template)" = "Hello John."
echo Testing arguments and reading/ writing to file. echo Testing arguments and reading/ writing to file.
echo '{{ USER }}' > "$infile" echo '{{ name }}' > "$infile"
export name='John'
template --output "$outfile" "$infile" template --output "$outfile" "$infile"
test "$(cat $outfile)" = "$USER" test "$(cat $outfile)" = "$name"
echo Testing JSON parsing. echo Testing JSON parsing.
export json='{"a": 1, "b": 2}' export json='{"a": 1, "b": 2}'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment