From 2e7d753e6a256c3561db39a22aa5e2a5f502400a Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Tue, 1 Jan 2019 19:59:54 +0100 Subject: [PATCH] try to hide a bug in tesh It seems to lose the CWD for some reasons. Here is a log example: [Tesh/INFO] change directory to /builds/workspace/SimGrid/build_mode/ModelChecker/node/simgrid-ubuntu-xenial-32/build/SimGrid-3.21.90/examples/python/actor-create [...] [actor-create.tesh:3] python3 /builds/workspace/SimGrid/build_mode/ModelChecker/node/simgrid-ubuntu-xenial-32/build/SimGrid-3.21.90/examples/python/actor-create/actor-create.py [...] +[...] [xbt/CRITICAL] Unable to open 'actor-create_d.xml' from '/builds/workspace/SimGrid/build_mode/ModelChecker/node/simgrid-ubuntu-xenial-32/build/SimGrid-3.21.90/examples/python' --- examples/python/actor-create/actor-create.tesh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/python/actor-create/actor-create.tesh b/examples/python/actor-create/actor-create.tesh index c93449dd46..fd492b3995 100644 --- a/examples/python/actor-create/actor-create.tesh +++ b/examples/python/actor-create/actor-create.tesh @@ -1,6 +1,6 @@ #!/usr/bin/env tesh -$ python3 ${srcdir:=.}/actor-create.py +$ python3 ${srcdir:=.}/actor-create.py --cfg=path:actor-create > [Tremblay:sender1:(2) 0.000000] [python/INFO] Hello s4u, I have something to send > [Jupiter:sender2:(3) 0.000000] [python/INFO] Hello s4u, I have something to send > [Fafard:sender:(4) 0.000000] [python/INFO] Hello s4u, I have something to send @@ -11,3 +11,6 @@ $ python3 ${srcdir:=.}/actor-create.py > [Jupiter:sender2:(3) 0.070434] [python/INFO] I'm done. See you. > [Fafard:receiver:(1) 0.086825] [python/INFO] I received 'GaBuZoMeu', 'GloubiBoulga' and 'PopPop!' > [Fafard:receiver:(1) 0.086825] [python/INFO] I'm done. See you. + +# The --cfg=path:actor-create should not be mandatory here. +# It is mostly intended to work around what seems to be a bug in our CI system. \ No newline at end of file -- 2.20.1