Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
try to hide a bug in tesh
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Tue, 1 Jan 2019 18:59:54 +0000 (19:59 +0100)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Tue, 1 Jan 2019 18:59:58 +0000 (19:59 +0100)
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

index c93449d..fd492b3 100644 (file)
@@ -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