From 013d7541b78c2c1d933e5c78d727007a15247e5e Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 4 May 2023 06:58:11 +1000 Subject: [PATCH] autotest: add progress file for enable-in-turn --- Tools/autotest/test_build_options.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Tools/autotest/test_build_options.py b/Tools/autotest/test_build_options.py index 0555ace3fc..872ea8c9a5 100755 --- a/Tools/autotest/test_build_options.py +++ b/Tools/autotest/test_build_options.py @@ -300,7 +300,7 @@ class TestBuildOptions(object): if not fnmatch.fnmatch(feature.define, self.match_glob): continue with open("/tmp/run-disable-in-turn-progress", "w") as f: - print(f.write(f"{count}/{len(options)} {feature.define}\n")) + f.write(f"{count}/{len(options)} {feature.define}\n") # if feature.define < "WINCH_ENABLED": # count += 1 # continue @@ -324,6 +324,8 @@ class TestBuildOptions(object): continue self.progress("Enabling feature %s(%s) (%u/%u)" % (feature.label, feature.define, count, len(options))) + with open("/tmp/run-enable-in-turn-progress", "w") as f: + f.write(f"{count}/{len(options)} {feature.define}\n") self.test_enable_feature(feature, options) count += 1