diff options
author | Clark Williams <williams@redhat.com> | 2007-12-13 15:06:16 -0600 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2007-12-13 15:06:16 -0600 |
commit | 076a90491cfc27c895618d950c4de828489c189c (patch) | |
tree | 0405013eace9141befcb50f5cc3a9c3ba06bf876 /docs | |
parent | e2a3ae38691b188b56ba0bddf431a62a5f9ac182 (diff) | |
parent | 64dbe925996c7f643cb9f980ac8b4fb4b6dbe1a0 (diff) | |
download | mock-076a90491cfc27c895618d950c4de828489c189c.tar.gz mock-076a90491cfc27c895618d950c4de828489c189c.tar.xz mock-076a90491cfc27c895618d950c4de828489c189c.zip |
merged with latest master
Diffstat (limited to 'docs')
-rwxr-xr-x | docs/releasetests.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/releasetests.sh b/docs/releasetests.sh index 27d37fc..5fb6537 100755 --- a/docs/releasetests.sh +++ b/docs/releasetests.sh @@ -94,6 +94,24 @@ fi set -e # +# Test that chroot with one arg is getting passed though a shell (via os.system()) +# +time $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 + +# +# Test that chroot with more than one arg is not getting passed through a shell +# +time $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 + +# # Test offline build # time $MOCKCMD --offline --rebuild mock-*.src.rpm |