diff options
author | Mike Bonnet <mikeb@redhat.com> | 2007-12-12 18:24:40 -0500 |
---|---|---|
committer | Michael E Brown <michael_e_brown@dell.com> | 2007-12-12 17:32:03 -0600 |
commit | b6e2d5a26ac478ce3409cab32dac704f2db61ac6 (patch) | |
tree | 662541fe58f6b018d4c5410b259e0ae7fb0786ed /docs | |
parent | 33d6db8f39e2f5a1aed9c8bc0c7e5e453d662d0c (diff) | |
download | mock-b6e2d5a26ac478ce3409cab32dac704f2db61ac6.tar.gz mock-b6e2d5a26ac478ce3409cab32dac704f2db61ac6.tar.xz mock-b6e2d5a26ac478ce3409cab32dac704f2db61ac6.zip |
if --chroot only has one argument, pass it to doChroot() as a string instead of a list to support legacy quoting rules
Signed-off-by: Michael E Brown <michael_e_brown@dell.com>
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 df82523..d627bff 100755 --- a/docs/releasetests.sh +++ b/docs/releasetests.sh @@ -76,6 +76,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 |