perf-test: Python2 compatible date formatting
This commit is contained in:
parent
5d9e0c3c85
commit
810bc88ae6
|
@ -640,8 +640,8 @@ def main():
|
|||
KeyName=args.ssh_key_name, PublicKeyMaterial=pk)
|
||||
|
||||
# build a unique id for this performance test run
|
||||
perf_test_id = str(datetime.datetime.utcnow().isoformat(
|
||||
sep='-', timespec='seconds')) + '-' + args.commit_id
|
||||
perf_test_id = str(datetime.datetime.utcnow().strftime(
|
||||
'%Y-%m-%d-%H:%M:%S')) + '-' + args.commit_id
|
||||
perf_test_id = re.sub('[:/_\.\^~ ]', '-', perf_test_id)
|
||||
logger.info('global: Preparing performance test ' + perf_test_id)
|
||||
|
||||
|
|
Loading…
Reference in New Issue