Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop cloning data model directory #112

Merged
merged 2 commits into from
Aug 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ TMP_SDK_PATH="/tmp/$TMP_SDK_FOLDER"

SDK_YAML_PATH="src/app/tests/suites/certification"
SDK_PYTHON_SCRIPT_PATH="src/python_testing"
SDK_PYTHON_DATA_MODEL_PATH="data_model"
SDK_SCRIPTS_PATH="scripts/"
SDK_EXAMPLE_CHIP_TOOL_PATH="examples/chip-tool"
SDK_EXAMPLE_PLACEHOLDER_PATH="examples/placeholder"
Expand Down Expand Up @@ -101,7 +100,7 @@ then
git clone --filter=blob:none --no-checkout --depth 1 --sparse https://github.com/project-chip/connectedhomeip.git $TMP_SDK_FOLDER
cd $TMP_SDK_FOLDER
git sparse-checkout init
git sparse-checkout set $SDK_YAML_PATH $SDK_SCRIPTS_PATH $SDK_EXAMPLE_PLACEHOLDER_PATH $SDK_EXAMPLE_CHIP_TOOL_PATH $SDK_DATA_MODEL_PATH $SDK_PYTHON_SCRIPT_PATH $SDK_PYTHON_DATA_MODEL_PATH
git sparse-checkout set $SDK_YAML_PATH $SDK_SCRIPTS_PATH $SDK_EXAMPLE_PLACEHOLDER_PATH $SDK_EXAMPLE_CHIP_TOOL_PATH $SDK_DATA_MODEL_PATH $SDK_PYTHON_SCRIPT_PATH
git checkout -q $SDK_SHA
SDK_PATH="$TMP_SDK_PATH"
fi
Expand Down Expand Up @@ -131,11 +130,6 @@ cp * "$SDK_YAML_DIR_YAML_TEST_COLLECTION_PATH/"
cd "$SDK_PATH/$SDK_PYTHON_SCRIPT_PATH"
cp -R * "$PYTHON_TESTING_SCRIPTS_TEST_COLLECTION_PATH/"

# Copy XML data models for SDK Python Testing
cd "$SDK_PATH/$SDK_PYTHON_DATA_MODEL_PATH"
mkdir -p "$PYTHON_TESTING_TEST_COLLECTION_PATH/data_model"
cp -R * "$PYTHON_TESTING_TEST_COLLECTION_PATH/data_model"

###
# Extract sdk runner and dependencies
###
Expand Down
Loading