File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 19
19
20
20
def run_command (cmd , log_file = None ):
21
21
print ("Running: {}" .format (cmd ))
22
+ sys .stdout .flush ()
22
23
if log_file :
23
24
file = open (log_file , "w" )
24
25
p = subprocess .Popen (cmd , shell = True , stdout = file , stderr = file )
@@ -56,6 +57,7 @@ def main():
56
57
for dockerfile in dockerfiles :
57
58
docker_dir = os .path .dirname (os .path .realpath (__file__ ))
58
59
print ("Testing {}" .format (dockerfile ))
60
+ sys .stdout .flush ()
59
61
log_file = dockerfile .replace (docker_dir ,"" ).replace ("/" , "_" )
60
62
log_file = "{}.log" .format (log_file )
61
63
cmd = "docker build --no-cache=true {}" .format (dockerfile )
@@ -70,6 +72,7 @@ def main():
70
72
cmd = "mv {log} {results}{log}" .format (log = log_file , results = results [dockerfile ])
71
73
run_command (cmd )
72
74
print ("[{}] - {}" .format (results [dockerfile ], dockerfile ))
75
+ sys .stdout .flush ()
73
76
74
77
for dockerfile in dockerfiles :
75
78
if results [dockerfile ] == "FAILED" :
You can’t perform that action at this time.
0 commit comments