From bef89a8ab55b329f004f53d2047983492b54c72d Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 10 Nov 2011 00:23:46 +1100 Subject: [PATCH] autotest: allow for multiple html files --- Tools/autotest/autotest.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Tools/autotest/autotest.py b/Tools/autotest/autotest.py index 6a61474ab1..1f8b40e430 100755 --- a/Tools/autotest/autotest.py +++ b/Tools/autotest/autotest.py @@ -194,10 +194,11 @@ def write_webresults(results): sys.path.insert(0, os.path.join(util.reltopdir("../pymavlink/generator"))) import mavtemplate t = mavtemplate.MAVTemplate() - html = util.loadfile(util.reltopdir('Tools/autotest/web/index.html')) - f = open(util.reltopdir("../buildlogs/index.html"), mode='w') - t.write(f, html, results) - f.close() + for h in glob.glob(util.reltopdir('Tools/autotest/web/*.html')): + html = util.loadfile(h) + f = open(util.reltopdir("../buildlogs/%s" % os.path.basename(h)), mode='w') + t.write(f, html, results) + f.close()