8de2ed Skip repoclosure test in non QA harness environment

Authored and Committed by Athmane Madjoudj 12 years ago
    Skip repoclosure test in non QA harness environment
    
        
tests/z_repoclosure/repoclosure_test.sh CHANGED
@@ -3,19 +3,24 @@
3
3
4
4
t_Log "Running $0 - repoclosure test ."
5
5
6
- t_InstallPackage yum-utils
6
+ if [ $SKIP_QA_HARNESS ]; then
7
7
8
- t_Log "Running repoclosure test ..."
8
+ t_InstallPackage yum-utils
9
9
10
- repoclosure > /tmp/repoclosure.log 2>&1
11
- grep -q 'unresolved deps' /tmp/repoclosure.log
12
- if [ $? -eq 0 ] ; then
13
- ret_val=1
14
- else
15
- ret_val=0
16
- fi
10
+ t_Log "Running repoclosure test ..."
11
+
12
+ repoclosure > /tmp/repoclosure.log 2>&1
13
+ grep -q 'unresolved deps' /tmp/repoclosure.log
14
+ if [ $? -eq 0 ] ; then
15
+ ret_val=1
16
+ else
17
+ ret_val=0
18
+ fi
17
19
18
- # print the output of repoclosure when it fails
19
- [ $ret_val -eq 1 ] && cat /tmp/repoclosure.log
20
+ # print the output of repoclosure when it fails
21
+ [ $ret_val -eq 1 ] && cat /tmp/repoclosure.log
20
22
21
- t_CheckExitStatus $ret_val
23
+ t_CheckExitStatus $ret_val
24
+ else
25
+ t_Log "Skip this test in non QA harness environment"
26
+ fi