aboutsummaryrefslogtreecommitdiff
path: root/tests/rep-fetch-git-refname.testscript
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-01-19 21:50:43 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-01-24 13:09:49 +0300
commitf40f28b12046cc993712956497dfb9d9baa452f9 (patch)
tree2637f186e99bee3572e55438190a4e4e96b8bdf3 /tests/rep-fetch-git-refname.testscript
parent707408c353bbc4b563f2b9d7c89ce34bf4ab7d47 (diff)
Add support for --no-progress option
Diffstat (limited to 'tests/rep-fetch-git-refname.testscript')
-rw-r--r--tests/rep-fetch-git-refname.testscript24
1 files changed, 21 insertions, 3 deletions
diff --git a/tests/rep-fetch-git-refname.testscript b/tests/rep-fetch-git-refname.testscript
index 08e552f..e273569 100644
--- a/tests/rep-fetch-git-refname.testscript
+++ b/tests/rep-fetch-git-refname.testscript
@@ -51,9 +51,9 @@
#
# fetching from <url> in 'cfg/.bpkg/tmp/4bde15f59461'...
#
- $* --verbose 2 2>&1 | \
- sed -n -e "s/fetching from .+ in '\(.+\)'/\$1/p" | \
- sed -n -e 's%(.+[\\/])tmp([\\/].+)%$1repos$2%p' | \
+ $* -v 2>&1 | \
+ sed -n -e "s/fetching from .+ in '\(.+\)'/\$1/p" | \
+ sed -n -e 's%(.+[\\/])tmp([\\/].+)%$1repos$2%p' | \
set r;
# Note that the commit for doc/style/basic submodule is not at the branch
@@ -147,4 +147,22 @@
$pkg_drop libfoo
}
+
+ : no-progress
+ :
+ if ($git_fully_supported || $git_protocol != 'https-smart-unadv')
+ {
+ $clone_root_cfg && $rep_add "$rep/state0/libfoo.git$fragment";
+
+ $* --no-progress 2>>~"%EOE%";
+ %fetching git:.+libfoo$fragment%
+ 1 package\(s\) in 1 repository\(s\)
+ EOE
+
+ $pkg_checkout --no-progress libfoo/1.0.0 2>>EOE;
+ checked out libfoo/1.0.0
+ EOE
+
+ $pkg_drop libfoo
+ }
}