diff options
author | Bill Peck <bpeck@redhat.com> | 2015-06-10 11:52:44 -0400 |
---|---|---|
committer | Bill Peck <bpeck@redhat.com> | 2015-06-10 11:52:44 -0400 |
commit | 7de4f63ef9b32c2695a1df63894b27808d95aa18 (patch) | |
tree | b09e33c0a947b3abe35aa25499968c7333691116 | |
parent | d984d96b670d38dc507289b3543b26984b32bdbf (diff) | |
download | tests-7de4f63ef9b32c2695a1df63894b27808d95aa18.tar.gz tests-7de4f63ef9b32c2695a1df63894b27808d95aa18.tar.xz tests-7de4f63ef9b32c2695a1df63894b27808d95aa18.zip |
prevent command from being run twice
-rw-r--r-- | restraint/config/restraint-sanity.xml | 2 |
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## && service restart restraintd"/> + <param name="CMDS_TO_RUN" value="[ "##VERSION##-##RELEASE##" = $(rpm -q --qf '%{version}-%{release}' ##PKGNAME##) ] || ( yum -y update ##PKGNAME## && service restart restraintd)"/> </params> </task> <task name="/tests/restraint/env/metadata"> |