8de2ed
Skip repoclosure test in non QA harness environment
@@ -3,19 +3,24 @@
|
|
3
3
|
|
4
4
|
t_Log "Running $0 - repoclosure test ."
|
5
5
|
|
6
|
-
|
6
|
+
if [ $SKIP_QA_HARNESS ]; then
|
7
7
|
|
8
|
-
|
8
|
+
t_InstallPackage yum-utils
|
9
9
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
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
|