From eec87ea5818dda5141b291d3cb0534a5b919c65e Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 10 Sep 2013 04:13:54 +0000 Subject: test_player_integration: avoid premature sink death Sinks should always continue running until EOF. Otherwise, the sink exiting prematurely could cause the player to stop prematurely. So just let it wait for EOF by running cat(1). --- test/test_player_integration.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test_player_integration.rb b/test/test_player_integration.rb index f71ed56..8784221 100644 --- a/test/test_player_integration.rb +++ b/test/test_player_integration.rb @@ -124,7 +124,8 @@ class TestPlayerIntegration < Testcase def test_sink_env s = client_socket tmp = Tempfile.new(%w(env .txt)) - s.req_ok("sink ed default active=true command='echo -$FOO- > #{tmp.path}'") + s.req_ok("sink ed default active=true " \ + "command='echo -$FOO- > #{tmp.path}; cat >/dev/null'") s.req_ok("sink ed default env.FOO=BAR") s.req_ok(["enq-cmd", "echo HI"]) -- cgit v1.2.3-24-ge0c7