summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorMike Bonnet <mikeb@redhat.com>2007-12-11 18:54:10 -0500
committerMichael E Brown <michael_e_brown@dell.com>2007-12-11 18:04:05 -0600
commitbd5d08919539538c0bfead439fd8e3a33f3b01b3 (patch)
tree04872ede3c1709153a4df4e7abc1ea4b116cac55 /docs
parentc4edf71309f230955998fd2922d6045068b31eab (diff)
downloadmock-bd5d08919539538c0bfead439fd8e3a33f3b01b3.tar.gz
mock-bd5d08919539538c0bfead439fd8e3a33f3b01b3.tar.xz
mock-bd5d08919539538c0bfead439fd8e3a33f3b01b3.zip
- make "mock --chroot" non-interactive - set the exit code of "mock --chroot" to the exit code of the process run in the chroot - log the output of the process to root.log
Signed-off-by: Michael E Brown <michael_e_brown@dell.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/mock.14
-rwxr-xr-xdocs/releasetests.sh2
2 files changed, 4 insertions, 2 deletions
diff --git a/docs/mock.1 b/docs/mock.1
index 89c443a..624c026 100644
--- a/docs/mock.1
+++ b/docs/mock.1
@@ -101,7 +101,9 @@ Show version number and exit.
.TP
\fB\-\-rebuild\fR \- If no command is specified, rebuild is assumed. Rebuilds the specified SRPM(s). The buildroot is cleaned first, unless --no-clean is specified.
.TP
-\fB\-\-chroot\fR|\fB\-\-shell\fR \- run the specified command within the chroot (which must already be initialized -- no 'clean' is performed). If no command specified, /bin/sh is run.
+\fB\-\-shell\fR \- run the specified command interactively within the chroot (which must already be initialized -- no 'clean' is performed). If no command specified, /bin/sh is run.
+.TP
+\fB\-\-chroot\fR \- run the specified command non-interactively within the chroot (which must already be initialized -- no 'clean' is performed). Command output will be sent to the log files.
.TP
\fB\-\-installdeps\fR \- find out deps for SRPM or RPM, and do a yum install to put them in the buildroot. Buildroot must already be initialized -- no 'clean' is performed
.TP
diff --git a/docs/releasetests.sh b/docs/releasetests.sh
index ca5c0f7..2a98e1d 100755
--- a/docs/releasetests.sh
+++ b/docs/releasetests.sh
@@ -56,7 +56,7 @@ fi
# Test that chroot return code is properly passed up
#
set +e
-time $MOCKCMD --offline --chroot 'bash -c "exit 5"'
+time $MOCKCMD --offline --chroot -- bash -c "exit 5"
if [ $? -ne 5 ]; then
echo "'mock --chroot' return code not properly passed back."
exit 1