From f40f28b12046cc993712956497dfb9d9baa452f9 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 19 Jan 2019 21:50:43 +0300 Subject: Add support for --no-progress option --- tests/rep-fetch-git-refname.testscript | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) (limited to 'tests/rep-fetch-git-refname.testscript') 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 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 + } } -- cgit v1.1