From: Lokur, Manish Date: Mon, 1 Jul 2019 18:40:32 +0000 (+0000) Subject: [VVP] Bug fix in conftest.py X-Git-Tag: 5.0.0~18 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=vvp%2Fvalidation-scripts.git;a=commitdiff_plain;h=ac00e6ea5fe3f53fa4d4b57e0e302f6bceca7066 [VVP] Bug fix in conftest.py Relatived Path function failed if the value is an empty string. Issue-ID: VVP-229 Signed-off-by: Lokur, Manish Change-Id: I811234cfc7c3c438bd8934568a3ccbb02bac013a --- diff --git a/ice_validator/tests/conftest.py b/ice_validator/tests/conftest.py index 1a8b9c1..b09a8aa 100644 --- a/ice_validator/tests/conftest.py +++ b/ice_validator/tests/conftest.py @@ -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