From ccad75c34af7cae8aee0159fe734a945f0c3861c Mon Sep 17 00:00:00 2001 From: Michael E Brown Date: Tue, 11 Dec 2007 14:20:14 -0600 Subject: add return code propagation test for --chroot cmd. --- docs/releasetests.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'docs') diff --git a/docs/releasetests.sh b/docs/releasetests.sh index 0d2caa5..ca5c0f7 100755 --- a/docs/releasetests.sh +++ b/docs/releasetests.sh @@ -52,6 +52,19 @@ if [ ! -e $CHROOT/usr/include/python* ]; then exit 1 fi +# +# Test that chroot return code is properly passed up +# +set +e +time $MOCKCMD --offline --chroot 'bash -c "exit 5"' +if [ $? -ne 5 ]; then + echo "'mock --chroot' return code not properly passed back." + exit 1 +fi +set -e + + + # # Test offline build # -- cgit