diff options
author | 2015-10-02 15:05:36 -0700 | |
---|---|---|
committer | 2015-10-02 15:05:36 -0700 | |
commit | 210a0ea598d44d725518ee68a27ad185fb0c16b0 (patch) | |
tree | 7d8fa344d178baf3a3fbf98d7668b09c7b9e8f5f /tools/run_tests/dockerjob.py | |
parent | 28bf559ee2c80486b837a9bd6bdff1713d07cb26 (diff) |
tweaking of run_interop_tests.py
Diffstat (limited to 'tools/run_tests/dockerjob.py')
-rwxr-xr-x | tools/run_tests/dockerjob.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/run_tests/dockerjob.py b/tools/run_tests/dockerjob.py index e938a3c2f7..11686d46b0 100755 --- a/tools/run_tests/dockerjob.py +++ b/tools/run_tests/dockerjob.py @@ -44,7 +44,10 @@ def wait_for_file(filepath, timeout_seconds=15): while time.time() - started < timeout_seconds: if os.path.isfile(filepath): with open(filepath, 'r') as f: - return f.read() + content = f.read() + # make sure we don't return empty content + if content: + return content time.sleep(1) raise Exception('Failed to read file %s.' % filepath) |