[VVP] Bug fix in conftest.py 49/90749/1
authorLokur, Manish <manish.shivakumar.lokur@att.com>
Mon, 1 Jul 2019 18:40:32 +0000 (18:40 +0000)
committerLokur, Manish <manish.shivakumar.lokur@att.com>
Mon, 1 Jul 2019 18:40:32 +0000 (18:40 +0000)
Relatived Path function failed if the value is an empty string.

Issue-ID: VVP-229

Signed-off-by: Lokur, Manish <manish.shivakumar.lokur@att.com>
Change-Id: I811234cfc7c3c438bd8934568a3ccbb02bac013a

ice_validator/tests/conftest.py

index 1a8b9c1..b09a8aa 100644 (file)
@@ -650,7 +650,7 @@ def aggregate_run_results(collection_failures, test_results):
 
 
 def relative_paths(base_dir, paths):
-    return [os.path.relpath(p, base_dir) for p in paths]
+    return [os.path.relpath(p, base_dir) for p in paths if p != ""]
 
 
 # noinspection PyTypeChecker