From 695573d6e7d2bdc6c82bf5bd9a7a687cbfd54243 Mon Sep 17 00:00:00 2001 From: Alexey Volkov Date: Wed, 27 May 2020 02:10:58 -0700 Subject: [PATCH] Testing - Handling spaces in paths in the component file loading test (#3856) --- components/test_load_all_components.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/components/test_load_all_components.sh b/components/test_load_all_components.sh index 5e733869c6a..0517db323f7 100755 --- a/components/test_load_all_components.sh +++ b/components/test_load_all_components.sh @@ -26,10 +26,11 @@ cd "$(dirname "$0")" PYTHONPATH="$PYTHONPATH:../sdk/python" echo "Testing loading all components" -python3 -c ' +find . -name component.yaml | python3 -c ' import sys import kfp -for component_file in sys.argv[1:]: +for component_file in sys.stdin: + component_file = component_file.rstrip("\n") print(component_file) kfp.components.load_component_from_file(component_file) -' $(find . -name component.yaml) +'