lib/parallel_tests/tasks.rb in parallel_tests-0.10.1 vs lib/parallel_tests/tasks.rb in parallel_tests-0.10.2
- old
+ new
@@ -28,10 +28,10 @@
# - simple system "set -o pipefail" returns nil even though set -o pipefail exists with 0
def suppress_output(command, ignore_regex)
activate_pipefail = "set -o pipefail"
remove_ignored_lines = %Q{(grep -v "#{ignore_regex}" || test 1)}
- if system("#{activate_pipefail} && test 1")
+ if system("#{activate_pipefail} 2>/dev/null && test 1")
"#{activate_pipefail} && (#{command}) | #{remove_ignored_lines}"
else
command
end
end