fix: Absolute file path in *Nix system start with slash. The heading slash should not be striped in this case.

This commit is contained in:
luowentao
2017-09-12 15:18:51 +08:00
parent 0a867e1db9
commit e077dd799c
+1 -1
View File
@@ -57,7 +57,7 @@ def main_ate():
for testset_path in set(args.testset_paths): for testset_path in set(args.testset_paths):
testset_path = testset_path.strip('/') testset_path = testset_path.rstrip('/')
task_suite = create_task(testset_path) task_suite = create_task(testset_path)
output_folder_name = os.path.basename(os.path.splitext(testset_path)[0]) output_folder_name = os.path.basename(os.path.splitext(testset_path)[0])