aboutsummaryrefslogtreecommitdiff
path: root/test/lua
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-05-08 11:22:10 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-05-08 11:22:10 -0700
commit83fb9d549542b12c14e48cda3a8ce4809466386c (patch)
tree7bb7bdd7bc49b5ac52df29f9175cb4898e4eada8 /test/lua
parente6d85927ea69325e79fa4fd5cee0882e9ad3303f (diff)
downloadpandoc-83fb9d549542b12c14e48cda3a8ce4809466386c.tar.gz
test-pandoc-utils.lua: workaround some local differences in 'echo'.
Diffstat (limited to 'test/lua')
-rw-r--r--test/lua/test-pandoc-utils.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lua/test-pandoc-utils.lua b/test/lua/test-pandoc-utils.lua
index 000be1f7a..4d02f6980 100644
--- a/test/lua/test-pandoc-utils.lua
+++ b/test/lua/test-pandoc-utils.lua
@@ -39,10 +39,10 @@ end
function test_pipe ()
if os_is_windows() then
local pipe_result = pandoc.pipe('echo', {}, 'hi')
- return pipe_result == 'hi\n'
+ return pipe_result == 'hi\n' or pipe_result == 'hi'
else
local pipe_result = pandoc.pipe('sed', {'-e', 's/a/b/'}, 'abc')
- return pipe_result == 'bbc\n'
+ return pipe_result == 'bbc\n' or pipe_result == 'bbc'
end
end