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

source ${CURDIR}/tests/functions

#
# test mock shell (interactive) and return code passing
#
header "testing interactive shell and return code"
echo exit 5 | runcmd "$MOCKCMD --offline --shell"
res=$?
if [ $res -ne 5 ]; then
    echo "'mock --chroot' return code not properly passed back: $res"
    exit 1
fi