diff options
author | Sylvain Pineau <sylvain.pineau@canonical.com> | 2020-07-14 12:36:40 +0200 |
---|---|---|
committer | Sylvain Pineau <sylvain.pineau@canonical.com> | 2020-07-14 12:36:40 +0200 |
commit | 681291604c6b0d28b0e2c3d70e076862ccac381b (patch) | |
tree | 813204265df784c1d832c8dab1bc8f673f7572d4 /bin | |
parent | c2740a470ab02c5b20db897a007cdc369087307d (diff) |
bin:pm_test.py: Preserve the log_filename (w/o the .py script extension)
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/pm_test.py | 11 |
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 |