mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-10 15:28:34 +01:00
functest: fix test-sync
Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
+8
-16
@@ -14,26 +14,18 @@ function test_sync() {
|
||||
dvc_info "Checking status"
|
||||
dvc status data/xml
|
||||
|
||||
dvc_info "Modifying data"
|
||||
echo "123456" >> data/xml/Tags.xml
|
||||
|
||||
dvc_info "Checking status"
|
||||
dvc status data/xml
|
||||
|
||||
dvc_info "Pulling data"
|
||||
dvc pull data/xml
|
||||
|
||||
dvc_info "Checking status"
|
||||
dvc status data/xml
|
||||
|
||||
dvc_info "Removing all cache"
|
||||
rm -rf .cache/xml
|
||||
rm -rf .dvc/cache/*
|
||||
rm -rf data/xml/*.xml
|
||||
|
||||
dvc_info "Checking status"
|
||||
dvc status data/xml
|
||||
|
||||
dvc_info "Pulling data"
|
||||
dvc pull data/xml
|
||||
dvc pull -v data/xml
|
||||
|
||||
dvc_info "Checking status"
|
||||
dvc status data/xml
|
||||
}
|
||||
|
||||
function test_aws() {
|
||||
@@ -41,9 +33,9 @@ function test_aws() {
|
||||
|
||||
dvc_info "Setting up AWS cloud"
|
||||
dvc_clean_cloud_aws
|
||||
dvc config global.cloud AWS
|
||||
dvc config aws.storagepath $TEST_REPO_S3
|
||||
dvc config aws.region $TEST_REPO_REGION
|
||||
dvc config global.cloud AWS
|
||||
|
||||
test_sync
|
||||
|
||||
@@ -55,9 +47,9 @@ function test_gcp() {
|
||||
|
||||
dvc_info "Setting up GCP cloud"
|
||||
dvc_clean_cloud_gcp
|
||||
dvc config global.cloud GCP
|
||||
dvc config gcp.storagepath $TEST_REPO_GCP
|
||||
dvc config gcp.projectname $TEST_REPO_GCP_PROJECT
|
||||
dvc config global.cloud GCP
|
||||
|
||||
test_sync
|
||||
|
||||
|
||||
Reference in New Issue
Block a user