From 695b9b8af8e2629d460d877abab4bdf216c71df2 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 4 Jun 2013 21:57:25 -0600 Subject: fix the tests to work when libretools isn't installed --- test/libremakepkg-test.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test/libremakepkg-test.sh') diff --git a/test/libremakepkg-test.sh b/test/libremakepkg-test.sh index 0cf3788..9e54fb6 100644 --- a/test/libremakepkg-test.sh +++ b/test/libremakepkg-test.sh @@ -6,6 +6,7 @@ before() { tmpdir=$(mktemp -d --tmpdir test-libremakepkg.XXXXXXXXXXXX) mkdir -p "$XDG_CONFIG_HOME"/libretools echo "CHROOTDIR='$tmpdir/chrootdir'" > "$XDG_CONFIG_HOME"/libretools/chroot.conf + echo "CHROOT='default'" >> "$XDG_CONFIG_HOME"/libretools/chroot.conf stat=0 } @@ -17,7 +18,9 @@ it_builds_a_trivial_package() { cp libremakepkg.d/PKGBUILD-hello "$tmpdir/PKGBUILD" cd "$tmpdir" - sudo -EH libremakepkg &>/dev/null + libremessages msg 'Creating a chroot, may take a few minutes' &>/dev/tty + sudo -EH libremakepkg + [[ -f $(echo libretools-hello-1.0-1-any.pkg.tar.?z) ]] } -- cgit v1.2.2