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

source ${CURDIR}/tests/functions

#
# Test that chroot with more than one arg is not getting passed through a shell
#
header "Test that chroot with more than one arg is not getting passed through a shell"
runcmd "$MOCKCMD --offline --chroot touch '/tmp/{quux,wibble}'"
if [ ! -f $CHROOT/tmp/\{quux,wibble\} ] || [ -f $CHROOT/tmp/quux ] || [ -f $CHROOT/tmp/wibble ]; then
    echo "'mock --chroot' with more than one argument is being passed to os.system()"
    exit 1
fi