From 0daa0728444baca11e50fa2c22c2c6bbabb0241b Mon Sep 17 00:00:00 2001 From: Guillaume Valadon Date: Sun, 28 Jan 2018 14:10:08 +0100 Subject: [PATCH] Allow headless tests --- test/pipetool.uts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/pipetool.uts b/test/pipetool.uts index fb2996fd1..8bd923aeb 100644 --- a/test/pipetool.uts +++ b/test/pipetool.uts @@ -10,9 +10,13 @@ s = PeriodicSource("hello", 1, name="src") d1 = Drain(name="d1") c = ConsoleSink(name="c") tf = TransformDrain(lambda x: "Got %s" % x) -t = TermSink(name="PipeToolsPeriodicTest", keepterm=False) s > d1 > c -d1 > tf > t +d1 > tf +try: + t = TermSink(name="PipeToolsPeriodicTest", keepterm=False) + tf > t +except FileNotFoundError: + pass p = PipeEngine(s) p.start()