Try running fsync to avoid fs caching race condition

This commit is contained in:
Daniel A. Wozniak 2018-10-06 12:49:49 -07:00
parent c3868261ba
commit e5ea3f1956
No known key found for this signature in database
GPG key ID: 166B9D2C06C82D61

View file

@ -76,6 +76,7 @@ class WinPKGTest(ModuleCase):
reboot: False
'''))
fp_.flush()
os.fsync(fp_.fileno())
# now check if curl is also in cache and repo query
pkgs.append('curl')
for pkg in pkgs: