Commit f3d037d3 authored by Jamie A. Jennings's avatar Jamie A. Jennings

Avoiding use of <<< to redirect an input string because it causes issues on ubuntu (?)

parent 2e0d8ba2
Pipeline #71516796 passed with stages
in 3 minutes and 14 seconds
......@@ -749,10 +749,10 @@ end
results_txt = table.concat(results, '\n')
check_lua_error(results_txt)
cmd = rosie_cmd .. ' --norcfile --rpl \'package foo x="a" num.any\' ' ..
'match "foo.x" <<<"a 123" 2>&1'
cmd = 'echo "a 123" | ' .. rosie_cmd ..
' --norcfile --rpl \'package foo x="a" num.any\' ' ..
'match "foo.x" 2>&1'
results, status, code = util.os_execute_capture(cmd, nil)
print(); print(results, #results, status, code); print()
check(#results>0, "command should have produced output")
if not check(code ~= 0, "exit status differs from expected") then
print("Command was:", cmd)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment