Blame tests/0_lib/install_package.sh

Karanbir Singh 14ae45
#!/bin/bash
Karanbir Singh 14ae45

Karanbir Singh 14ae45
function t_InstallPackage(){
Karanbir Singh 14ae45

Karanbir Singh 14ae45
  for P in $*; do
Karanbir Singh 14ae45
  	echo -n "[+] Attempting yum install of '$P'..."
Karanbir Singh 14ae45
	
Karanbir Singh 14ae45
	  $YUM -y -d0 install $P &>/dev/null
Karanbir Singh 14ae45
	  RETVAL=$?
Karanbir Singh 14ae45
	  if [ $RETVAL -ne 0 ]; then
Karanbir Singh 14ae45
		  echo "FAIL: yum install of '$P' failed ($RETVAL)"
Karanbir Singh 14ae45
		  exit $FAIL
Karanbir Singh 14ae45
	  fi
Karanbir Singh 14ae45
	  echo "OK"
Karanbir Singh 14ae45
  done
Karanbir Singh 14ae45
}