From 0d5763f5abc90adac128050a79b521b8e0b5d6a3 Mon Sep 17 00:00:00 2001 From: Daniel Moody Date: Wed, 11 May 2022 23:50:08 -0500 Subject: Add some time in Dir/source.py test because of filesystem precision. --- test/Dir/source.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/Dir/source.py b/test/Dir/source.py index f38b07d..9104db0 100644 --- a/test/Dir/source.py +++ b/test/Dir/source.py @@ -22,6 +22,7 @@ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +import time """ This test tests directories as source files. The correct behavior is that @@ -106,6 +107,8 @@ test.up_to_date(arguments='cmd-content.out') test.up_to_date(arguments='cmd-tstamp-noscan.out') test.up_to_date(arguments='cmd-content-noscan.out') +time.sleep(2) + test.write([ 'tstamp', 'foo.txt' ], 'foo.txt 2\n') test.not_up_to_date(arguments='tstamp.out') -- cgit v0.12