tazpkg view tests/test03 @ rev 937

modules/get: make wget progress metter working again
Now, Busybox v. 1.26 make the difference whether it outputs progress meter to the file or to the tty (libbb/progress.c).
Bug report: http://forum.slitaz.org/topic/two-issues-with-tazpkg-934
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Jan 27 12:13:57 2017 +0200 (2017-01-27)
parents
children
line source
1 #!/bin/sh
2 #
3 . /lib/libtaz.sh
4 check_root
5 ROOT='/tmp/test'
7 title 'Test #03'
8 colorize 033 "$(longline "Don't install already installed package without --forced option.")"
9 newline
11 ########
12 tazpkg --root=$ROOT --nodeps -gi nano 2>&1 | tee /tmp/test1
13 ########
15 if ! fgrep -q -e '--forced' /tmp/test1; then
16 colorize 31 "ERROR. TazPkg should write warning. Exit test"
17 rm /tmp/test1
18 exit 1
19 fi
20 rm /tmp/test1
22 footer "$(colorize 32 'Test #03 passed')"
23 exit 0