From 681291604c6b0d28b0e2c3d70e076862ccac381b Mon Sep 17 00:00:00 2001 From: Sylvain Pineau Date: Tue, 14 Jul 2020 12:36:40 +0200 Subject: bin:pm_test.py: Preserve the log_filename (w/o the .py script extension) --- bin/pm_test.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/bin/pm_test.py b/bin/pm_test.py index 066f757..84b88be 100755 --- a/bin/pm_test.py +++ b/bin/pm_test.py @@ -1007,11 +1007,12 @@ class MyArgumentParser(): # Log filename shows clearly the type of test (pm_operation) # and the times it was repeated (repetitions) - args.log_filename = os.path.join(args.log_dir, - ('{0}.{1}.{2}.log' - .format(os.path.basename(__file__), - args.pm_operation, - args.total))) + args.log_filename = os.path.join( + args.log_dir, + '{0}.{1}.{2}.log'.format( + os.path.splitext(os.path.basename(__file__))[0], + args.pm_operation, + args.total))) return args, extra_args -- cgit v1.2.3