summaryrefslogtreecommitdiffstats
path: root/tests/test1.tst
blob: 0eb547dd04c3c332c5e885a77fefbd3141ea2a82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

source ${CURDIR}/tests/functions

#
# Test that chroot return code is properly passed up
#

header "testing that chroot return code is passed back correctly"
runcmd "$MOCKCMD --offline --chroot -- bash -c 'exit 5'"
res=$?
if [ $res -ne 5 ]; then
    echo "'mock --chroot' return code not properly passed back: $res"
    exit 1
fi