allow ConfigureOp#log_and_test_command to be passed standard input data - close #111

This commit is contained in:
josh committed 2019-09-01 21:50:57 -04:00
1 parent a1bb9d81fd
commit efa77066bf
3 files changed
+21 -2

No files matched your search

@@ -17,6 +17,10 @@ configure do
end
op.complete(status, success_message: "good!", fail_message: fail_message, fail: should_fail)
end
custom_check("Checking sed -E flag") do |op|
stdout, stderr, status = op.log_and_test_command(%w[sed -E -e s/ab+/rep/], stdin: "abbbc")
op.complete(stdout =~ /repc/ ? 0 : 1, success_message: "good", fail_message: "fail")
end
end
build do