From 6e730aa55a689215ac71afd2bb3c7ac30f698bb9 Mon Sep 17 00:00:00 2001 From: heister Date: Thu, 3 Oct 2013 19:19:28 +0000 Subject: [PATCH] fix script git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@31101 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/scripts/makereport.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/scripts/makereport.py b/tests/scripts/makereport.py index 8ec7590608..60c04cf991 100644 --- a/tests/scripts/makereport.py +++ b/tests/scripts/makereport.py @@ -35,6 +35,11 @@ while len(args)>0: branch=args[0].replace('/','')+'/' args.pop(0) +if dirname=="": + n=glob.glob("*/Build.xml") + n.sort(reverse=True) + dirname = n[0].replace('/Build.xml','') + if len(glob.glob(dirname+'/Update.xml'))>0: #new format tree = ET.parse(dirname+'/Update.xml') @@ -49,6 +54,7 @@ else: number = number[1:] date = datetime.strptime(dirname,"%Y%m%d-%H%M") + header = "Revision: %s"%number + "\n" header += "Date: %s"%(date.strftime("%Y %j %F %U-%w")) + '\n' id = subprocess.check_output(["id","-un"])+'@'+subprocess.check_output(["hostname"]) -- 2.39.5