60de42
From 0c2eab4dd768335e0212e79730f6cf17a318fe1c Mon Sep 17 00:00:00 2001
60de42
From: Ken Gaillot <kgaillot@redhat.com>
60de42
Date: Thu, 19 Jan 2017 12:11:38 -0600
60de42
Subject: [PATCH 1/2] Test: tools: ignore source code line numbers when
60de42
 comparing validation output
60de42
60de42
---
60de42
 tools/regression.sh           |   1 +
60de42
 tools/regression.validity.exp | 156 +++++++++++++++++++++---------------------
60de42
 2 files changed, 79 insertions(+), 78 deletions(-)
60de42
60de42
diff --git a/tools/regression.sh b/tools/regression.sh
60de42
index 47bff43..edc5e6b 100755
60de42
--- a/tools/regression.sh
60de42
+++ b/tools/regression.sh
60de42
@@ -755,6 +755,7 @@ for t in $tests; do
60de42
         -e 's/ last-rc-change=\"[0-9]*\"//'\
60de42
         -e 's|^/tmp/[0-9][0-9]*\.||'\
60de42
         -e 's/^Entity: line [0-9][0-9]*: //'\
60de42
+        -e 's/schemas\.c:\([0-9][0-9]*\)/schemas.c:NNN/' \
60de42
         -e 's/\(validation ([0-9][0-9]* of \)[0-9][0-9]*\().*\)/\1X\2/' $test_home/regression.$t.out
60de42
 
60de42
     if [ $do_save = 1 ]; then
60de42
diff --git a/tools/regression.validity.exp b/tools/regression.validity.exp
60de42
index 827b660..1278a09 100644
60de42
--- a/tools/regression.validity.exp
60de42
+++ b/tools/regression.validity.exp
60de42
@@ -22,46 +22,46 @@ Call failed: Update does not conform to the configured schema
60de42
 =#=#=#= End test: Try to make resulting CIB invalid (enum violation) - Update does not conform to the configured schema (203) =#=#=#=
60de42
 * Passed: cibadmin       - Try to make resulting CIB invalid (enum violation)
60de42
 =#=#=#= Begin test: Run crm_simulate with invalid CIB (enum violation) =#=#=#=
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-1.2' validation (4 of X)
60de42
+(   schemas.c:NNN   )   debug: update_validation:	Testing 'pacemaker-1.2' validation (4 of X)
60de42
 element rsc_order: Relax-NG validity error : Invalid attribute first-action for element rsc_order
60de42
 element rsc_order: Relax-NG validity error : Element constraints has extra content: rsc_order
60de42
-(   schemas.c:760   )   trace: update_validation:	pacemaker-1.2 validation failed
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-1.3' validation (5 of X)
60de42
+(   schemas.c:NNN   )   trace: update_validation:	pacemaker-1.2 validation failed
60de42
+(   schemas.c:NNN   )   debug: update_validation:	Testing 'pacemaker-1.3' validation (5 of X)
60de42
 element rsc_order: Relax-NG validity error : Invalid attribute first-action for element rsc_order
60de42
 element rsc_order: Relax-NG validity error : Element constraints has extra content: rsc_order
60de42
-(   schemas.c:760   )   trace: update_validation:	pacemaker-1.3 validation failed
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.0' validation (6 of X)
60de42
+(   schemas.c:NNN   )   trace: update_validation:	pacemaker-1.3 validation failed
60de42
+(   schemas.c:NNN   )   debug: update_validation:	Testing 'pacemaker-2.0' validation (6 of X)
60de42
 element rsc_order: Relax-NG validity error : Invalid attribute first-action for element rsc_order
60de42
 element rsc_order: Relax-NG validity error : Element constraints has extra content: rsc_order
60de42
-(   schemas.c:760   )   trace: update_validation:	pacemaker-2.0 validation failed
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.1' validation (7 of X)
60de42
+(   schemas.c:NNN   )   trace: update_validation:	pacemaker-2.0 validation failed
60de42
+(   schemas.c:NNN   )   debug: update_validation:	Testing 'pacemaker-2.1' validation (7 of X)
60de42
 element rsc_order: Relax-NG validity error : Invalid attribute first-action for element rsc_order
60de42
 element rsc_order: Relax-NG validity error : Element constraints has extra content: rsc_order
60de42
-(   schemas.c:760   )   trace: update_validation:	pacemaker-2.1 validation failed
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.2' validation (8 of X)
60de42
+(   schemas.c:NNN   )   trace: update_validation:	pacemaker-2.1 validation failed
60de42
+(   schemas.c:NNN   )   debug: update_validation:	Testing 'pacemaker-2.2' validation (8 of X)
60de42
 element rsc_order: Relax-NG validity error : Invalid attribute first-action for element rsc_order
60de42
 element rsc_order: Relax-NG validity error : Element constraints has extra content: rsc_order
60de42
-(   schemas.c:760   )   trace: update_validation:	pacemaker-2.2 validation failed
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.3' validation (9 of X)
60de42
+(   schemas.c:NNN   )   trace: update_validation:	pacemaker-2.2 validation failed
60de42
+(   schemas.c:NNN   )   debug: update_validation:	Testing 'pacemaker-2.3' validation (9 of X)
60de42
 element rsc_order: Relax-NG validity error : Invalid attribute first-action for element rsc_order
60de42
 element rsc_order: Relax-NG validity error : Element constraints has extra content: rsc_order
60de42
-(   schemas.c:760   )   trace: update_validation:	pacemaker-2.3 validation failed
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.4' validation (10 of X)
60de42
+(   schemas.c:NNN   )   trace: update_validation:	pacemaker-2.3 validation failed
60de42
+(   schemas.c:NNN   )   debug: update_validation:	Testing 'pacemaker-2.4' validation (10 of X)
60de42
 element rsc_order: Relax-NG validity error : Invalid attribute first-action for element rsc_order
60de42
 element rsc_order: Relax-NG validity error : Element constraints has extra content: rsc_order
60de42
-(   schemas.c:760   )   trace: update_validation:	pacemaker-2.4 validation failed
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.5' validation (11 of X)
60de42
+(   schemas.c:NNN   )   trace: update_validation:	pacemaker-2.4 validation failed
60de42
+(   schemas.c:NNN   )   debug: update_validation:	Testing 'pacemaker-2.5' validation (11 of X)
60de42
 element rsc_order: Relax-NG validity error : Invalid attribute first-action for element rsc_order
60de42
 element rsc_order: Relax-NG validity error : Element constraints has extra content: rsc_order
60de42
-(   schemas.c:760   )   trace: update_validation:	pacemaker-2.5 validation failed
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.6' validation (12 of X)
60de42
+(   schemas.c:NNN   )   trace: update_validation:	pacemaker-2.5 validation failed
60de42
+(   schemas.c:NNN   )   debug: update_validation:	Testing 'pacemaker-2.6' validation (12 of X)
60de42
 element rsc_order: Relax-NG validity error : Invalid attribute first-action for element rsc_order
60de42
 element rsc_order: Relax-NG validity error : Element constraints has extra content: rsc_order
60de42
-(   schemas.c:760   )   trace: update_validation:	pacemaker-2.6 validation failed
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.7' validation (13 of X)
60de42
+(   schemas.c:NNN   )   trace: update_validation:	pacemaker-2.6 validation failed
60de42
+(   schemas.c:NNN   )   debug: update_validation:	Testing 'pacemaker-2.7' validation (13 of X)
60de42
 element rsc_order: Relax-NG validity error : Invalid attribute first-action for element rsc_order
60de42
 element rsc_order: Relax-NG validity error : Element constraints has extra content: rsc_order
60de42
-(   schemas.c:760   )   trace: update_validation:	pacemaker-2.7 validation failed
60de42
+(   schemas.c:NNN   )   trace: update_validation:	pacemaker-2.7 validation failed
60de42
 Your current configuration pacemaker-1.2 could not validate with any schema in range [pacemaker-1.2, pacemaker-2.7], cannot upgrade to pacemaker-2.0.
60de42
 =#=#=#= End test: Run crm_simulate with invalid CIB (enum violation) - Required key not available (126) =#=#=#=
60de42
 * Passed: crm_simulate   - Run crm_simulate with invalid CIB (enum violation)
60de42
@@ -85,57 +85,57 @@ Call failed: Update does not conform to the configured schema
60de42
 =#=#=#= End test: Try to make resulting CIB invalid (unrecognized validate-with) - Update does not conform to the configured schema (203) =#=#=#=
60de42
 * Passed: cibadmin       - Try to make resulting CIB invalid (unrecognized validate-with)
60de42
 =#=#=#= Begin test: Run crm_simulate with invalid CIB (unrecognized validate-with) =#=#=#=
60de42
-(   schemas.c:736   )   debug: update_validation:	Unknown validation type
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-0.6' validation (0 of X)
60de42
+(   schemas.c:NNN   )   debug: update_validation:	Unknown validation type
60de42
+(   schemas.c:NNN   )   debug: update_validation:	Testing 'pacemaker-0.6' validation (0 of X)
60de42
 element rsc_order: validity error : Element rsc_order does not carry attribute to
60de42
 element rsc_order: validity error : Element rsc_order does not carry attribute from
60de42
 element rsc_order: validity error : No declaration for attribute first of element rsc_order
60de42
 element rsc_order: validity error : No declaration for attribute first-action of element rsc_order
60de42
 element rsc_order: validity error : No declaration for attribute then of element rsc_order
60de42
-(   schemas.c:760   )   trace: update_validation:	pacemaker-0.6 validation failed
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'transitional-0.6' validation (1 of X)
60de42
+(   schemas.c:NNN   )   trace: update_validation:	pacemaker-0.6 validation failed
60de42
+(   schemas.c:NNN   )   debug: update_validation:	Testing 'transitional-0.6' validation (1 of X)
60de42
 element rsc_order: validity error : Element rsc_order does not carry attribute to
60de42
 element rsc_order: validity error : Element rsc_order does not carry attribute from
60de42
 element rsc_order: validity error : No declaration for attribute first of element rsc_order
60de42
 element rsc_order: validity error : No declaration for attribute first-action of element rsc_order
60de42
 element rsc_order: validity error : No declaration for attribute then of element rsc_order
60de42
-(   schemas.c:760   )   trace: update_validation:	transitional-0.6 validation failed
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-0.7' validation (2 of X)
60de42
+(   schemas.c:NNN   )   trace: update_validation:	transitional-0.6 validation failed
60de42
+(   schemas.c:NNN   )   debug: update_validation:	Testing 'pacemaker-0.7' validation (2 of X)
60de42
 element cib: Relax-NG validity error : Invalid attribute validate-with for element cib
60de42
-(   schemas.c:760   )   trace: update_validation:	pacemaker-0.7 validation failed
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-1.0' validation (3 of X)
60de42
+(   schemas.c:NNN   )   trace: update_validation:	pacemaker-0.7 validation failed
60de42
+(   schemas.c:NNN   )   debug: update_validation:	Testing 'pacemaker-1.0' validation (3 of X)
60de42
 element cib: Relax-NG validity error : Invalid attribute validate-with for element cib
60de42
-(   schemas.c:760   )   trace: update_validation:	pacemaker-1.0 validation failed
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-1.2' validation (4 of X)
60de42
+(   schemas.c:NNN   )   trace: update_validation:	pacemaker-1.0 validation failed
60de42
+(   schemas.c:NNN   )   debug: update_validation:	Testing 'pacemaker-1.2' validation (4 of X)
60de42
 element cib: Relax-NG validity error : Invalid attribute validate-with for element cib
60de42
-(   schemas.c:760   )   trace: update_validation:	pacemaker-1.2 validation failed
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-1.3' validation (5 of X)
60de42
+(   schemas.c:NNN   )   trace: update_validation:	pacemaker-1.2 validation failed
60de42
+(   schemas.c:NNN   )   debug: update_validation:	Testing 'pacemaker-1.3' validation (5 of X)
60de42
 element cib: Relax-NG validity error : Invalid attribute validate-with for element cib
60de42
-(   schemas.c:760   )   trace: update_validation:	pacemaker-1.3 validation failed
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.0' validation (6 of X)
60de42
+(   schemas.c:NNN   )   trace: update_validation:	pacemaker-1.3 validation failed
60de42
+(   schemas.c:NNN   )   debug: update_validation:	Testing 'pacemaker-2.0' validation (6 of X)
60de42
 element cib: Relax-NG validity error : Invalid attribute validate-with for element cib
60de42
-(   schemas.c:760   )   trace: update_validation:	pacemaker-2.0 validation failed
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.1' validation (7 of X)
60de42
+(   schemas.c:NNN   )   trace: update_validation:	pacemaker-2.0 validation failed
60de42
+(   schemas.c:NNN   )   debug: update_validation:	Testing 'pacemaker-2.1' validation (7 of X)
60de42
 element cib: Relax-NG validity error : Invalid attribute validate-with for element cib
60de42
-(   schemas.c:760   )   trace: update_validation:	pacemaker-2.1 validation failed
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.2' validation (8 of X)
60de42
+(   schemas.c:NNN   )   trace: update_validation:	pacemaker-2.1 validation failed
60de42
+(   schemas.c:NNN   )   debug: update_validation:	Testing 'pacemaker-2.2' validation (8 of X)
60de42
 element cib: Relax-NG validity error : Invalid attribute validate-with for element cib
60de42
-(   schemas.c:760   )   trace: update_validation:	pacemaker-2.2 validation failed
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.3' validation (9 of X)
60de42
+(   schemas.c:NNN   )   trace: update_validation:	pacemaker-2.2 validation failed
60de42
+(   schemas.c:NNN   )   debug: update_validation:	Testing 'pacemaker-2.3' validation (9 of X)
60de42
 element cib: Relax-NG validity error : Invalid attribute validate-with for element cib
60de42
-(   schemas.c:760   )   trace: update_validation:	pacemaker-2.3 validation failed
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.4' validation (10 of X)
60de42
+(   schemas.c:NNN   )   trace: update_validation:	pacemaker-2.3 validation failed
60de42
+(   schemas.c:NNN   )   debug: update_validation:	Testing 'pacemaker-2.4' validation (10 of X)
60de42
 element cib: Relax-NG validity error : Invalid attribute validate-with for element cib
60de42
-(   schemas.c:760   )   trace: update_validation:	pacemaker-2.4 validation failed
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.5' validation (11 of X)
60de42
+(   schemas.c:NNN   )   trace: update_validation:	pacemaker-2.4 validation failed
60de42
+(   schemas.c:NNN   )   debug: update_validation:	Testing 'pacemaker-2.5' validation (11 of X)
60de42
 element cib: Relax-NG validity error : Invalid attribute validate-with for element cib
60de42
-(   schemas.c:760   )   trace: update_validation:	pacemaker-2.5 validation failed
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.6' validation (12 of X)
60de42
+(   schemas.c:NNN   )   trace: update_validation:	pacemaker-2.5 validation failed
60de42
+(   schemas.c:NNN   )   debug: update_validation:	Testing 'pacemaker-2.6' validation (12 of X)
60de42
 element cib: Relax-NG validity error : Invalid attribute validate-with for element cib
60de42
-(   schemas.c:760   )   trace: update_validation:	pacemaker-2.6 validation failed
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.7' validation (13 of X)
60de42
+(   schemas.c:NNN   )   trace: update_validation:	pacemaker-2.6 validation failed
60de42
+(   schemas.c:NNN   )   debug: update_validation:	Testing 'pacemaker-2.7' validation (13 of X)
60de42
 element cib: Relax-NG validity error : Invalid attribute validate-with for element cib
60de42
-(   schemas.c:760   )   trace: update_validation:	pacemaker-2.7 validation failed
60de42
+(   schemas.c:NNN   )   trace: update_validation:	pacemaker-2.7 validation failed
60de42
 Your current configuration pacemaker-9999.0 could not validate with any schema in range [unknown, pacemaker-2.7], cannot upgrade to pacemaker-2.0.
60de42
 =#=#=#= End test: Run crm_simulate with invalid CIB (unrecognized validate-with) - Required key not available (126) =#=#=#=
60de42
 * Passed: crm_simulate   - Run crm_simulate with invalid CIB (unrecognized validate-with)
60de42
@@ -159,36 +159,36 @@ Call failed: Update does not conform to the configured schema
60de42
 =#=#=#= End test: Try to make resulting CIB invalid, but possibly recoverable (valid with X.Y+1) - Update does not conform to the configured schema (203) =#=#=#=
60de42
 * Passed: cibadmin       - Try to make resulting CIB invalid, but possibly recoverable (valid with X.Y+1)
60de42
 =#=#=#= Begin test: Run crm_simulate with invalid, but possibly recoverable CIB (valid with X.Y+1) =#=#=#=
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-1.2' validation (4 of X)
60de42
+(   schemas.c:NNN   )   debug: update_validation:	Testing 'pacemaker-1.2' validation (4 of X)
60de42
 element tags: Relax-NG validity error : Element configuration has extra content: tags
60de42
-(   schemas.c:760   )   trace: update_validation:	pacemaker-1.2 validation failed
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-1.3' validation (5 of X)
60de42
-(   schemas.c:804   )   debug: update_validation:	Upgrading pacemaker-1.3-style configuration to pacemaker-2.0 with upgrade-1.3.xsl
60de42
-(   schemas.c:816   )    info: update_validation:	Transformation upgrade-1.3.xsl successful
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.0' validation (6 of X)
60de42
-(   schemas.c:797   )   debug: update_validation:	pacemaker-2.0-style configuration is also valid for pacemaker-2.1
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.1' validation (7 of X)
60de42
-(   schemas.c:771   )   debug: update_validation:	Configuration valid for schema: pacemaker-2.1
60de42
-(   schemas.c:797   )   debug: update_validation:	pacemaker-2.1-style configuration is also valid for pacemaker-2.2
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.2' validation (8 of X)
60de42
-(   schemas.c:771   )   debug: update_validation:	Configuration valid for schema: pacemaker-2.2
60de42
-(   schemas.c:797   )   debug: update_validation:	pacemaker-2.2-style configuration is also valid for pacemaker-2.3
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.3' validation (9 of X)
60de42
-(   schemas.c:771   )   debug: update_validation:	Configuration valid for schema: pacemaker-2.3
60de42
-(   schemas.c:797   )   debug: update_validation:	pacemaker-2.3-style configuration is also valid for pacemaker-2.4
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.4' validation (10 of X)
60de42
-(   schemas.c:771   )   debug: update_validation:	Configuration valid for schema: pacemaker-2.4
60de42
-(   schemas.c:797   )   debug: update_validation:	pacemaker-2.4-style configuration is also valid for pacemaker-2.5
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.5' validation (11 of X)
60de42
-(   schemas.c:771   )   debug: update_validation:	Configuration valid for schema: pacemaker-2.5
60de42
-(   schemas.c:797   )   debug: update_validation:	pacemaker-2.5-style configuration is also valid for pacemaker-2.6
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.6' validation (12 of X)
60de42
-(   schemas.c:771   )   debug: update_validation:	Configuration valid for schema: pacemaker-2.6
60de42
-(   schemas.c:797   )   debug: update_validation:	pacemaker-2.6-style configuration is also valid for pacemaker-2.7
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.7' validation (13 of X)
60de42
-(   schemas.c:771   )   debug: update_validation:	Configuration valid for schema: pacemaker-2.7
60de42
-(   schemas.c:787   )   trace: update_validation:	Stopping at pacemaker-2.7
60de42
-(   schemas.c:843   )    info: update_validation:	Transformed the configuration from pacemaker-1.2 to pacemaker-2.7
60de42
+(   schemas.c:NNN   )   trace: update_validation:	pacemaker-1.2 validation failed
60de42
+(   schemas.c:NNN   )   debug: update_validation:	Testing 'pacemaker-1.3' validation (5 of X)
60de42
+(   schemas.c:NNN   )   debug: update_validation:	Upgrading pacemaker-1.3-style configuration to pacemaker-2.0 with upgrade-1.3.xsl
60de42
+(   schemas.c:NNN   )    info: update_validation:	Transformation upgrade-1.3.xsl successful
60de42
+(   schemas.c:NNN   )   debug: update_validation:	Testing 'pacemaker-2.0' validation (6 of X)
60de42
+(   schemas.c:NNN   )   debug: update_validation:	pacemaker-2.0-style configuration is also valid for pacemaker-2.1
60de42
+(   schemas.c:NNN   )   debug: update_validation:	Testing 'pacemaker-2.1' validation (7 of X)
60de42
+(   schemas.c:NNN   )   debug: update_validation:	Configuration valid for schema: pacemaker-2.1
60de42
+(   schemas.c:NNN   )   debug: update_validation:	pacemaker-2.1-style configuration is also valid for pacemaker-2.2
60de42
+(   schemas.c:NNN   )   debug: update_validation:	Testing 'pacemaker-2.2' validation (8 of X)
60de42
+(   schemas.c:NNN   )   debug: update_validation:	Configuration valid for schema: pacemaker-2.2
60de42
+(   schemas.c:NNN   )   debug: update_validation:	pacemaker-2.2-style configuration is also valid for pacemaker-2.3
60de42
+(   schemas.c:NNN   )   debug: update_validation:	Testing 'pacemaker-2.3' validation (9 of X)
60de42
+(   schemas.c:NNN   )   debug: update_validation:	Configuration valid for schema: pacemaker-2.3
60de42
+(   schemas.c:NNN   )   debug: update_validation:	pacemaker-2.3-style configuration is also valid for pacemaker-2.4
60de42
+(   schemas.c:NNN   )   debug: update_validation:	Testing 'pacemaker-2.4' validation (10 of X)
60de42
+(   schemas.c:NNN   )   debug: update_validation:	Configuration valid for schema: pacemaker-2.4
60de42
+(   schemas.c:NNN   )   debug: update_validation:	pacemaker-2.4-style configuration is also valid for pacemaker-2.5
60de42
+(   schemas.c:NNN   )   debug: update_validation:	Testing 'pacemaker-2.5' validation (11 of X)
60de42
+(   schemas.c:NNN   )   debug: update_validation:	Configuration valid for schema: pacemaker-2.5
60de42
+(   schemas.c:NNN   )   debug: update_validation:	pacemaker-2.5-style configuration is also valid for pacemaker-2.6
60de42
+(   schemas.c:NNN   )   debug: update_validation:	Testing 'pacemaker-2.6' validation (12 of X)
60de42
+(   schemas.c:NNN   )   debug: update_validation:	Configuration valid for schema: pacemaker-2.6
60de42
+(   schemas.c:NNN   )   debug: update_validation:	pacemaker-2.6-style configuration is also valid for pacemaker-2.7
60de42
+(   schemas.c:NNN   )   debug: update_validation:	Testing 'pacemaker-2.7' validation (13 of X)
60de42
+(   schemas.c:NNN   )   debug: update_validation:	Configuration valid for schema: pacemaker-2.7
60de42
+(   schemas.c:NNN   )   trace: update_validation:	Stopping at pacemaker-2.7
60de42
+(   schemas.c:NNN   )    info: update_validation:	Transformed the configuration from pacemaker-1.2 to pacemaker-2.7
60de42
 error: unpack_resources:	Resource start-up disabled since no STONITH resources have been defined
60de42
 error: unpack_resources:	Either configure some or disable STONITH with the stonith-enabled option
60de42
 error: unpack_resources:	NOTE: Clusters with shared data need STONITH to ensure data integrity
60de42
-- 
60de42
1.8.3.1
60de42
60de42
60de42
From eacd1a651d5c081aa297d09e07a1bc0b3d00fe04 Mon Sep 17 00:00:00 2001
60de42
From: Ken Gaillot <kgaillot@redhat.com>
60de42
Date: Thu, 19 Jan 2017 17:56:47 -0600
60de42
Subject: [PATCH 2/2] Test: tools: make regression test clean up after itself
60de42
 on success
60de42
60de42
---
60de42
 tools/regression.sh | 6 +++++-
60de42
 1 file changed, 5 insertions(+), 1 deletion(-)
60de42
60de42
diff --git a/tools/regression.sh b/tools/regression.sh
60de42
index edc5e6b..56de6a4 100755
60de42
--- a/tools/regression.sh
60de42
+++ b/tools/regression.sh
60de42
@@ -606,7 +606,7 @@ function test_acls() {
60de42
     $VALGRIND_CMD crm_shadow --batch --force --create-empty $shadow --validate-with pacemaker-1.3 2>&1
60de42
     export CIB_shadow=$shadow
60de42
 
60de42
-    cat<<EOF>/tmp/$$.acls.xml
60de42
+    cat <<EOF >/tmp/$$.acls.xml
60de42
     <acls>
60de42
       <acl_user id="l33t-haxor">
60de42
         <deny id="crook-nothing" xpath="/cib"/>
60de42
@@ -794,5 +794,9 @@ elif [ $failed = 1 ]; then
60de42
     exit 2
60de42
 else
60de42
     echo $num_passed tests passed
60de42
+    for t in $tests; do
60de42
+        rm -f "$test_home/regression.$t.out"
60de42
+    done
60de42
+    crm_shadow --force --delete $shadow >/dev/null 2>&1
60de42
     exit 0
60de42
 fi
60de42
-- 
60de42
1.8.3.1
60de42