From 309347a8ece2d2a493b3dea113d2b22b610bc3ec Mon Sep 17 00:00:00 2001 From: Thibault Jouan Date: Thu, 9 Apr 2015 02:38:26 +0000 Subject: [PATCH] Hide linux netstat stderr output on travis CI --- features/steps/x_steps.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/steps/x_steps.rb b/features/steps/x_steps.rb index 03d6933..9db1e28 100644 --- a/features/steps/x_steps.rb +++ b/features/steps/x_steps.rb @@ -5,7 +5,7 @@ end def x_socket_check pid case RbConfig::CONFIG['host_os'] when /linux/ - `netstat -xp`.lines.grep /\s+#{pid}\/ruby/ + `netstat -xp 2> /dev/null`.lines.grep /\s+#{pid}\/ruby/ else `sockstat -u`.lines.grep /\s+ruby.+\s+#{pid}/ end.any?