Merge pull request #547 from efiop/master

tests: checkout: sleep(1) to emulate realistic behavior
This commit is contained in:
Ruslan Kuprieiev
2018-03-13 20:58:58 +02:00
committed by GitHub
+3
View File
@@ -1,4 +1,5 @@
import os
import time
import stat
import shutil
import filecmp
@@ -30,6 +31,8 @@ class TestCheckoutCorruptedCacheFile(TestRepro):
def test(self):
cache = self.foo_stage.outs[0].cache
time.sleep(1)
os.chmod(cache, stat.S_IWRITE)
with open(cache, 'a') as fd:
fd.write('1')