From 271e9bd2b3eec5c8c0b0b35fc2c2fc3d5790a772 Mon Sep 17 00:00:00 2001 From: jiegec Date: Mon, 14 Sep 2020 14:38:58 +0800 Subject: [PATCH] Fix tests of two stage rsync provider --- worker/provider_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worker/provider_test.go b/worker/provider_test.go index 4b0a4c0..8dc3f96 100644 --- a/worker/provider_test.go +++ b/worker/provider_test.go @@ -614,7 +614,7 @@ exit 0 targetDir, fmt.Sprintf( "-aHvh --no-o --no-g --stats --exclude .~tmp~/ --safe-links "+ - "--exclude dists/ --timeout=30 -6 "+ + "--include=*.diff/ --exclude=*.diff/Index --exclude=Packages* --exclude=Sources* --exclude=Release* --exclude=InRelease --include=i18n/by-hash --exclude=i18n/* --exclude=ls-lR* --timeout=30 -6 "+ "--exclude-from %s %s %s", provider.excludeFile, provider.upstreamURL, provider.WorkingDir(), ), @@ -656,7 +656,7 @@ exit 0 expectedOutput := fmt.Sprintf( "-aHvh --no-o --no-g --stats --exclude .~tmp~/ --safe-links "+ - "--exclude dists/ --timeout=30 -6 "+ + "--include=*.diff/ --exclude=*.diff/Index --exclude=Packages* --exclude=Sources* --exclude=Release* --exclude=InRelease --include=i18n/by-hash --exclude=i18n/* --exclude=ls-lR* --timeout=30 -6 "+ "--exclude-from %s %s %s\n", provider.excludeFile, provider.upstreamURL, provider.WorkingDir(), )