diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-01-19 21:50:43 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-01-24 13:09:49 +0300 |
commit | f40f28b12046cc993712956497dfb9d9baa452f9 (patch) | |
tree | 2637f186e99bee3572e55438190a4e4e96b8bdf3 /tests/pkg-fetch.testscript | |
parent | 707408c353bbc4b563f2b9d7c89ce34bf4ab7d47 (diff) |
Add support for --no-progress option
Diffstat (limited to 'tests/pkg-fetch.testscript')
-rw-r--r-- | tests/pkg-fetch.testscript | 30 |
1 files changed, 9 insertions, 21 deletions
diff --git a/tests/pkg-fetch.testscript b/tests/pkg-fetch.testscript index ba7437f..fe14662 100644 --- a/tests/pkg-fetch.testscript +++ b/tests/pkg-fetch.testscript @@ -39,6 +39,11 @@ pkg_unpack += -d cfg rep_add += -d cfg 2>! rep_fetch += -d cfg --auth all 2>! +# Let's disable the progress indication that complicates stderr output +# validation. +# +test.options += --no-progress + : no-archive : $clone_cfg; @@ -96,11 +101,6 @@ $* libfoo/1.0.0 2>>/EOE != 0 EOE } -# Note that when we fetch a package from remote repository the bpkg stderr -# contains fetch program progress output, that comes prior the informational -# message. -# - : fetched-rep : { @@ -118,10 +118,7 @@ $* libfoo/1.0.0 2>>/EOE != 0 { $clone_cfg; - $* libfoo/1.0.0 2>>~%EOE%; - %.* - %.*fetched libfoo/1.0.0% - EOE + $* libfoo/1.0.0 2>'fetched libfoo/1.0.0'; $pkg_status libfoo/1.0.0 1>'libfoo fetched 1.0.0'; @@ -151,20 +148,14 @@ $* libfoo/1.0.0 2>>/EOE != 0 test.arguments += --replace; # Replace existing package. - $* libfoo/1.1.0 2>>~%EOE%; - %.* - %.*fetched libfoo/1.1.0% - EOE + $* libfoo/1.1.0 2>'fetched libfoo/1.1.0'; $pkg_status libfoo/1.1.0 1>'libfoo fetched 1.1.0'; $pkg_unpack libfoo 2>'unpacked libfoo/1.1.0'; $* -e $src/t1/libfoo-1.0.0.tar.gz 2>'using libfoo/1.0.0 (external)'; $pkg_status libfoo/1.0.0 1>'libfoo fetched 1.0.0'; - $* libfoo/1.1.0 2>>~%EOE%; - %.* - %.*fetched libfoo/1.1.0% - EOE + $* libfoo/1.1.0 2>'fetched libfoo/1.1.0'; $pkg_status libfoo/1.1.0 1>'libfoo fetched 1.1.0'; $* -e $src/t1/libfoo-1.0.0.tar.gz 2>'using libfoo/1.0.0 (external)'; @@ -192,10 +183,7 @@ $* libfoo/1.0.0 2>>/EOE != 0 $rep_add $rep/hello; $rep_fetch --trust $cert_fp &cfg/.bpkg/certs/**; - $* libhello/1.0.0 2>>~%EOE%; - %.* - %.*fetched libhello/1.0.0% - EOE + $* libhello/1.0.0 2>'fetched libhello/1.0.0'; $pkg_status libhello/1.0.0 1>'libhello fetched 1.0.0'; |