Commit e50a3c2d authored by Antoine Kaufmann's avatar Antoine Kaufmann
Browse files

experiments: more verbose remote await_file

parent d743d2a1
......@@ -324,6 +324,9 @@ class RemoteExecutor(Executor):
cwd=self.cwd, **kwargs)
async def await_file(self, path, delay=0.05, verbose=False, timeout=30):
if verbose:
print('%s.await_file(%s) started' % (self.host_name, path))
to_its = timeout / delay
loop_cmd = ('i=0 ; while [ ! -e %s ] ; do '
'if [ $i -ge %u ] ; then exit 1 ; fi ; '
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment