From e077dd799c25221a79e5b42ecbfc196234805943 Mon Sep 17 00:00:00 2001 From: luowentao Date: Tue, 12 Sep 2017 15:18:51 +0800 Subject: [PATCH] fix: Absolute file path in *Nix system start with slash. The heading slash should not be striped in this case. --- ate/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ate/cli.py b/ate/cli.py index 4c37a546..d851b76a 100644 --- a/ate/cli.py +++ b/ate/cli.py @@ -57,7 +57,7 @@ def main_ate(): for testset_path in set(args.testset_paths): - testset_path = testset_path.strip('/') + testset_path = testset_path.rstrip('/') task_suite = create_task(testset_path) output_folder_name = os.path.basename(os.path.splitext(testset_path)[0])