summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Peck <bpeck@redhat.com>2015-06-10 11:52:44 -0400
committerBill Peck <bpeck@redhat.com>2015-06-10 11:52:44 -0400
commit7de4f63ef9b32c2695a1df63894b27808d95aa18 (patch)
treeb09e33c0a947b3abe35aa25499968c7333691116
parentd984d96b670d38dc507289b3543b26984b32bdbf (diff)
downloadtests-7de4f63ef9b32c2695a1df63894b27808d95aa18.tar.gz
tests-7de4f63ef9b32c2695a1df63894b27808d95aa18.tar.xz
tests-7de4f63ef9b32c2695a1df63894b27808d95aa18.zip
prevent command from being run twice
-rw-r--r--restraint/config/restraint-sanity.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/restraint/config/restraint-sanity.xml b/restraint/config/restraint-sanity.xml
index c29a7fe..0599ca8 100644
--- a/restraint/config/restraint-sanity.xml
+++ b/restraint/config/restraint-sanity.xml
@@ -10,7 +10,7 @@
<task name="/distribution/command">
<rpm name="distribution-distribution-command" path="/mnt/tests/distribution/command"/>
<params>
- <param name="CMDS_TO_RUN" value="yum -y update ##PKGNAME## &amp;&amp; service restart restraintd"/>
+ <param name="CMDS_TO_RUN" value="[ "##VERSION##-##RELEASE##" = $(rpm -q --qf '%{version}-%{release}' ##PKGNAME##) ] || ( yum -y update ##PKGNAME## &amp;&amp; service restart restraintd)"/>
</params>
</task>
<task name="/tests/restraint/env/metadata">