diff options
Diffstat (limited to 'tests/test3.tst')
-rw-r--r-- | tests/test3.tst | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/test3.tst b/tests/test3.tst new file mode 100644 index 0000000..20ecce1 --- /dev/null +++ b/tests/test3.tst @@ -0,0 +1,14 @@ +#!/bin/sh + +source ${CURDIR}/tests/functions + +# +# Test that chroot with one arg is getting passed though a shell (via os.system()) +# +header "testing that args are passed correctly to a shell" +runcmd "$MOCKCMD --offline --chroot 'touch /tmp/{foo,bar,baz}'" +if [ ! -f $CHROOT/tmp/foo ] || [ ! -f $CHROOT/tmp/bar ] || [ ! -f $CHROOT/tmp/baz ]; then + echo "'mock --chroot' with one argument is not being passed to os.system()" + exit 1 +fi + |