diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2021-05-01 12:25:51 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2021-05-01 12:25:51 +0100 |
commit | e7feb00ea84d0e7295e2de90ba07ec2937e4b023 (patch) | |
tree | 15e3f1f376bdc6a3c98f54c95e299b1865d9fb50 /subplot.py | |
parent | 1f0eae217d536dcddb7e951721b0fbfd15e8e75d (diff) | |
download | subplot-e7feb00ea84d0e7295e2de90ba07ec2937e4b023.tar.gz |
subplot: Add delay step in some scenarios
In order to work on filesystems where the time granularity is not
sub-second, some scenarios need to wait a bit.
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'subplot.py')
-rw-r--r-- | subplot.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -2,6 +2,7 @@ import json import os import shutil import tempfile +import time # A shell script to run the subplot binary from the source directory's Rust @@ -129,3 +130,7 @@ def binary(basename): def do_nothing(ctx): pass + + +def sleep_seconds(ctx, delay="1"): + time.sleep(int(delay)) |