Skip to contentSkip to conversation

master - tests: aux.sh move corosyn

PATCH Zdenek Kabelac 1 participant 1 message Jul 10, 2017

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=4fc0166ca90efe902805f7abb951edeb0f7a91b2
Commit:        4fc0166ca90efe902805f7abb951edeb0f7a91b2
Parent:        408e3b84f6b5d04fca1533cc7aab80d19e561d1c
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Mon Jul 10 12:42:20 2017 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon Jul 10 14:23:53 2017 +0200

tests: aux.sh move corosyn

---
 test/lib/aux.sh |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
test/lib/aux.sh +4 -3
index 2e0cc10..747255b 100644
@@ -1,5 +1,5 @@
 #!/usr/bin/env bash
-# Copyright (C) 2011-2015 Red Hat, Inc. All rights reserved.
+# Copyright (C) 2011-2017 Red Hat, Inc. All rights reserved.
 #
 # This copyrighted material is made available to anyone wishing to use,
 # modify, copy, or redistribute it subject to the terms and conditions
@@ -21,9 +21,10 @@ expect_failure() {
         echo "TEST EXPECT FAILURE"
 }
 
-COROSYNC_CONF="/etc/corosync/corosync.conf"
-COROSYNC_NODE=$(hostname)
 create_corosync_conf() {
+	COROSYNC_CONF="/etc/corosync/corosync.conf"
+	COROSYNC_NODE=$(hostname)
+
 	if test -a "$COROSYNC_CONF"; then
 		if ! grep "created by lvm test suite" "$COROSYNC_CONF"; then
 			rm "$COROSYNC_CONF"