1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-11-11 20:05:07 -05:00

Reduce delay in pactest when running MODIFIED tests

pactest was sleeping for 3 seconds, which is unnecessary. Reduce it to 1.5
seconds and clean up the code a bit anyway.

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2007-07-02 10:06:03 -04:00
parent 4d9b5d4a2a
commit 59d9ccf48d

View File

@ -68,12 +68,10 @@ class pmenv:
t.generate() t.generate()
# Hack for mtimes consistency # Hack for mtimes consistency
modified = 0
for i in t.rules: for i in t.rules:
if i.rule.find("MODIFIED") != -1: if i.rule.find("MODIFIED") != -1:
modified = 1 time.sleep(1.5)
if modified: break
time.sleep(3)
t.run(self.pacman) t.run(self.pacman)