bstinson / centos / t_functional

Forked from centos/t_functional 4 years ago
Clone

Blame tests/p_git/10-test_git.sh

Pratima, Madhurranjan, Nilesh aa2e40
#!/bin/bash
Pratima, Madhurranjan, Nilesh aa2e40
# Author: Pratima Singh <prati.86@gmail.com>, Nilesh Bairagi <nileshbairagi@gmail.com>, Madhurranjan Mohaan <madhurranjan.mohaan@gmail.com>
Christoph Galuschka 3002b6
#	  Christoph Galuschka <christoph.galuschka@chello.at>
Pratima, Madhurranjan, Nilesh aa2e40
Pratima, Madhurranjan, Nilesh aa2e40
# Check git installation
Christoph Galuschka 3002b6
Christoph Galuschka 3002b6
t_Log "Running $0 - checking git installation"
Christoph Galuschka 3002b6
Christoph Galuschka aea50a
if [ $centos_ver == '6' ]
Christoph Galuschka 3002b6
  then
Christoph Galuschka 3002b6
  git --version
Christoph Galuschka 3002b6
  ret_val=$?
Christoph Galuschka 3002b6
else
Christoph Galuschka 3002b6
  t_Log "This test is skipped in CentOS5."
Christoph Galuschka 3002b6
  ret_val=0
Christoph Galuschka 3002b6
fi
Christoph Galuschka 3002b6
  
Christoph Galuschka 3002b6
t_CheckExitStatus $ret_val