File pacemaker-tools-regression-test-insensitive-to-line-number-changes.patch of Package pacemaker.openSUSE_Leap_42.3_Update
commit 19d6501ca5a1b13c0d08b65f159bfb9ff1a7fe4e
Author: Ken Gaillot <kgaillot@redhat.com>
Date: Fri Nov 10 09:34:11 2017 -0600
Test: tools: make regression test insensitive to line number changes
Index: pacemaker-1.1.16+20170320.77ea74d/tools/regression.sh
===================================================================
--- pacemaker-1.1.16+20170320.77ea74d.orig/tools/regression.sh
+++ pacemaker-1.1.16+20170320.77ea74d/tools/regression.sh
@@ -764,6 +764,7 @@ for t in $tests; do
-e 's|^/tmp/[0-9][0-9]*\.||'\
-e 's/^Entity: line [0-9][0-9]*: //'\
-e 's/schemas\.c:\([0-9][0-9]*\)/schemas.c:NNN/' \
+ -e 's/constraints\.:\([0-9][0-9]*\)/constraints.:NNN/' \
-e 's/\(validation ([0-9][0-9]* of \)[0-9][0-9]*\().*\)/\1X\2/' $test_home/regression.$t.out
if [ $do_save = 1 ]; then
Index: pacemaker-1.1.16+20170320.77ea74d/tools/regression.validity.exp
===================================================================
--- pacemaker-1.1.16+20170320.77ea74d.orig/tools/regression.validity.exp
+++ pacemaker-1.1.16+20170320.77ea74d/tools/regression.validity.exp
@@ -374,7 +374,7 @@ bad-1.2.xml:10: element rsc_order: Relax
error: unpack_resources: Resource start-up disabled since no STONITH resources have been defined
error: unpack_resources: Either configure some or disable STONITH with the stonith-enabled option
error: unpack_resources: NOTE: Clusters with shared data need STONITH to ensure data integrity
-(constraints.:430 ) error: unpack_simple_rsc_order: Cannot invert rsc_order constraint ord_1-2. Please specify the inverse manually.
+(constraints.:NNN ) error: unpack_simple_rsc_order: Cannot invert rsc_order constraint ord_1-2. Please specify the inverse manually.
Current cluster status: