about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-09-10 04:13:54 +0000
committerEric Wong <normalperson@yhbt.net>2013-09-10 04:15:33 +0000
commiteec87ea5818dda5141b291d3cb0534a5b919c65e (patch)
tree08637591ce82f7c3d5b5ef665f7695d0710bc5d4
parenta25a4b15617cc488565a5baf095af49b5f0a182a (diff)
downloaddtas-eec87ea5818dda5141b291d3cb0534a5b919c65e.tar.gz
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).
-rw-r--r--test/test_player_integration.rb3
1 files changed, 2 insertions, 1 deletions
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"])