Skip to content

Commit

Permalink
Testing - Handling spaces in paths in the component file loading test (
Browse files Browse the repository at this point in the history
  • Loading branch information
Ark-kun authored May 27, 2020
1 parent cc46bef commit 695573d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions components/test_load_all_components.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
'

0 comments on commit 695573d

Please sign in to comment.