Hide linux netstat stderr output on travis CI
This commit is contained in:
parent
366028fa01
commit
309347a8ec
@ -5,7 +5,7 @@ end
|
|||||||
def x_socket_check pid
|
def x_socket_check pid
|
||||||
case RbConfig::CONFIG['host_os']
|
case RbConfig::CONFIG['host_os']
|
||||||
when /linux/
|
when /linux/
|
||||||
`netstat -xp`.lines.grep /\s+#{pid}\/ruby/
|
`netstat -xp 2> /dev/null`.lines.grep /\s+#{pid}\/ruby/
|
||||||
else
|
else
|
||||||
`sockstat -u`.lines.grep /\s+ruby.+\s+#{pid}/
|
`sockstat -u`.lines.grep /\s+ruby.+\s+#{pid}/
|
||||||
end.any?
|
end.any?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user