From: Thierry Parmentelat Date: Tue, 20 Sep 2011 08:46:05 +0000 (+0200) Subject: expand @DATE@ X-Git-Tag: tests-5.0-29~31 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=bac889bca8102aec62ddf28fc75c3eafb4a40dc0;p=tests.git expand @DATE@ --- diff --git a/system/Substrate.py b/system/Substrate.py index e145b20..8da463c 100644 --- a/system/Substrate.py +++ b/system/Substrate.py @@ -317,7 +317,10 @@ class BuildBox (Box): for line in ps_lines: if not line.strip() or line.find('PID')>=0: continue m=BuildBox.matcher.match(line) - if m: self.add_build (m.group('buildname'),m.group('pid')) + if m: + date=time.strftime('%Y-%m-%d',time.localtime(time.time())) + buildname=m.group('buildname').replace('@DATE@',date) + self.add_build (buildname,m.group('pid')) else: header('command %r returned line that failed to match'%command) ############################################################