summaryrefslogtreecommitdiff
path: root/subplot.py
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2021-05-01 12:25:51 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2021-05-01 12:25:51 +0100
commite7feb00ea84d0e7295e2de90ba07ec2937e4b023 (patch)
tree15e3f1f376bdc6a3c98f54c95e299b1865d9fb50 /subplot.py
parent1f0eae217d536dcddb7e951721b0fbfd15e8e75d (diff)
downloadsubplot-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.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/subplot.py b/subplot.py
index 1746502..568013e 100644
--- a/subplot.py
+++ b/subplot.py
@@ -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))