Commit e07c2bab authored by Jérome Perrin's avatar Jérome Perrin

deploy-test/runTestSuite: fix a python3 incompatibility

NamedTemporaryFile are w+b by default.
parent 564cb10a
...@@ -181,8 +181,8 @@ def main(): ...@@ -181,8 +181,8 @@ def main():
# Create the site # Create the site
status_dict = waitForSite(args.partition_path) status_dict = waitForSite(args.partition_path)
status_file = tempfile.NamedTemporaryFile() status_file = tempfile.NamedTemporaryFile(mode='w')
status_file.write(json.dumps(status_dict)) json.dump(status_dict, status_file)
status_file.flush() status_file.flush()
os.fsync(status_file.fileno()) os.fsync(status_file.fileno())
os.environ['TEST_SITE_STATUS_JSON'] = status_file.name os.environ['TEST_SITE_STATUS_JSON'] = status_file.name
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment