From: | "Mike Frysinger (vapier)" <vapier@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-projects commit in portage-utils/tests: init.sh |
Date: | Tue, 01 Mar 2011 04:59:08 |
Message-Id: | 20110301045859.E856D20054@flycatcher.gentoo.org |
1 | vapier 11/03/01 04:58:59 |
2 | |
3 | Added: init.sh |
4 | Log: |
5 | add common test init code |
6 | |
7 | Revision Changes Path |
8 | 1.1 portage-utils/tests/init.sh |
9 | |
10 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/tests/init.sh?rev=1.1&view=markup |
11 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/tests/init.sh?rev=1.1&content-type=text/plain |
12 | |
13 | Index: init.sh |
14 | =================================================================== |
15 | d=$PWD |
16 | while [[ $d != "/" ]] ; do |
17 | [[ -e $d/q ]] && break |
18 | d=${d%/*} |
19 | done |
20 | PATH=$d:$PATH |
21 | unset d |
22 | |
23 | q -i -q |
24 | |
25 | fail() { |
26 | echo "FAILED: $*" |
27 | exit 1 |
28 | } |
29 | die() { fail "$@" ; } |
30 | |
31 | pass() { |
32 | echo "PASSED" |
33 | exit 0 |
34 | } |