tests: Update layer path test to strip empty paths Change-Id: Ib6f209650894e44955b82aa47a5e24f2d3640acc
diff --git a/tests/run_loader_tests.sh b/tests/run_loader_tests.sh index 329d17b..23f2817 100755 --- a/tests/run_loader_tests.sh +++ b/tests/run_loader_tests.sh
@@ -45,9 +45,9 @@ echo "Environment Variable Path test FAILED - Implicit layer path incorrect" >&2 exit 1 fi - # Sadly, the loader does not clean up this path and just stumbles through it. - # So just make sure it is the same. - right_path="${vk_layer_path}" + # The loader cleans up this path to remove the empty paths, so we need to clean up the right path, too + right_path="${vk_layer_path//:::::/:}" + right_path="${right_path//::::/:}" echo "$output" | grep -q "$right_path" ec=$? if [ $ec -eq 1 ]