Blame tests/0_common/10_remove_32bitpkgs.sh

Karanbir Singh 43deec
#!/bin/sh
Karanbir Singh 43deec
Karanbir Singh 43deec
echo 'Test that all 32 rpms can be removed'
Karanbir Singh 43deec
Karanbir Singh 43deec
# only run this test on x86_64 machines!
Karanbir Singh 43deec
is64=$(uname -m|grep x86_64)
Karanbir Singh 43deec
if [ "$?" -ne '0' ]; then
Karanbir Singh 43deec
  echo ' Skip'
Karanbir Singh 43deec
  exit 1
Karanbir Singh 43deec
fi
Karanbir Singh 43deec
Karanbir Singh 43deec
yum -d0 -y erase *.i?86 
Karanbir Singh 43deec
#yum -d0 -y erase *.i?86 > /dev/null 2>&1
Karanbir Singh 43deec
if [ $? -eq 0 ]; then 
Karanbir Singh 43deec
  echo ' PASS'
Karanbir Singh 43deec
else
Karanbir Singh 43deec
  echo ' Fail'
Karanbir Singh 43deec
  exit 1
Karanbir Singh 43deec
fi 
Karanbir Singh 43deec
Karanbir Singh 43deec
# note, this does not imply the machine is usable after the remove! need
Karanbir Singh 43deec
# to test that independantly