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.yaml | |
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.yaml')
-rw-r--r-- | subplot.yaml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/subplot.yaml b/subplot.yaml index 33705dd..c7c0c4e 100644 --- a/subplot.yaml +++ b/subplot.yaml @@ -39,6 +39,14 @@ - then: "{filename} ends in two newlines" function: file_ends_in_two_newlines +# In order to cope with low granularity filesystems, sometimes we need to wait +# for things to happen +- when: I wait until (?P<delay>\d+) seconds? has passed + function: sleep_seconds + regex: true + types: + delay: uint + # The following are purely descriptive steps and are not used to test anything - given: the necessary starting conditions |