summaryrefslogtreecommitdiff
path: root/bin
diff options
authorSylvain Pineau <sylvain.pineau@canonical.com>2020-07-14 12:36:40 +0200
committerSylvain Pineau <sylvain.pineau@canonical.com>2020-07-14 12:36:40 +0200
commit681291604c6b0d28b0e2c3d70e076862ccac381b (patch)
tree813204265df784c1d832c8dab1bc8f673f7572d4 /bin
parentc2740a470ab02c5b20db897a007cdc369087307d (diff)
bin:pm_test.py: Preserve the log_filename (w/o the .py script extension)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pm_test.py11
1 files 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