File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -21,9 +21,9 @@ CHROOT_ROOT=$HOME/testmachine-chroot/
2121sudo mkdir -p " $CHROOT_ROOT "
2222
2323# Clean up previous chroot state by killing any processes that are using the CHROOT_ROOT directory.
24- sudo " $FUSER " -k " $CHROOT_ROOT " || true
24+ sudo " $FUSER " -k " $CHROOT_ROOT " > /dev/null 2>&1 || true
2525# Unmount the /proc filesystem if it was previously mounted inside the chroot.
26- sudo umount " ${CHROOT_ROOT} proc" || true
26+ sudo umount " ${CHROOT_ROOT} proc" > /dev/null 2>&1 || true
2727
2828# Tell rsync not to touch the BASEDIR and PREFIX directories
2929echo " P $BASEDIR " > " $TRANSFER_SCRIPT "
Original file line number Diff line number Diff line change @@ -51,23 +51,23 @@ chroot)
5151 # Minilogd may sometimes launch on RedHat without any user
5252 # intervention. Ignore that.
5353 # shellcheck disable=SC2009
54- if ps -ef | grep -E " ^ *[^ ]+ +$pid " | grep minilogd; then
54+ if ps -ef 2> /dev/null | grep -E " ^ *[^ ]+ +$pid " | grep -q minilogd; then
5555 continue
5656 fi
5757 ;;
5858 suse)
5959
6060 # gpg-agent sometimes is spawned on suse during our tests.
6161 # This happens only in chroot. Ignore that.
62- if ps -o command --pid " $pid " | grep " gpg-agent --homedir /var/tmp/zypp.*zypp-trusted.*--daemon" ; then
62+ if ps -o command --pid " $pid " 2> /dev/null | grep -q " gpg-agent --homedir /var/tmp/zypp.*zypp-trusted.*--daemon" ; then
6363 continue
6464 fi
6565 ;;
6666 ubuntu)
6767 # gpg-agent sometimes is spawned on Ubuntu 24 during our tests.
6868 # This happens only in chroot. Ignore that.
6969 if [ " $OS_VERSION_MAJOR " = " 24" ]; then
70- if ps -o command --pid " $pid " | grep " gpg-agent --homedir /etc/apt/sources.list.d/.gnupg-temp --use-standard-socket --daemon" ; then
70+ if ps -o command --pid " $pid " 2> /dev/null | grep -q " gpg-agent --homedir /etc/apt/sources.list.d/.gnupg-temp --use-standard-socket --daemon" ; then
7171 continue
7272 fi
7373 fi
You can’t perform that action at this time.
0 commit comments