pacemaker/11-Tests-cts-cli-simplify-fix-regexp-to-catch-crm_time_.patch
Jan Pokorný 8a22ec78ab
2.0.1-0.1.rc3 - Update for new upstream tarball
...for release candidate: Pacemaker-2.0.1-rc3,
  for full details, see included ChangeLog file or
  https://github.com/ClusterLabs/pacemaker/releases/tag/Pacemaker-2.0.1-rc3

Adapt spec file more akin to upstream version including:
. split a dedicated, noarch -schemas package (c6a87bd86)
. make static dependencies on inner libraries arch-specific (14bfff68e)
. weak co-dependence of -cli with -remote & pacemaker proper (73e2c94a3)
. declare bundled gnulib (d57aa84c1)

Move stonith_admin to -cli where it belongs, since it doesn't require
  -cluster-libs (considered by upstream)

Apply patches to restore basic buildability (still without much run-time
  reproducibility guarantees compared to what's been customary prior to glib
  v2.59.0+ that may now get run-time linked upon its fresh installation/update,
  but this applies also to whatever older version of pacemaker, and wasn't
  discovered until now; cf. https://github.com/ClusterLabs/pacemaker/pull/1677)

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
2019-01-20 12:04:16 +01:00

28 lines
1.1 KiB
Diff

From 86ba5e63eff051aa01b4872cee97896aecf38ef9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Pokorn=C3=BD?= <jpokorny@redhat.com>
Date: Sat, 19 Jan 2019 23:17:11 +0100
Subject: [PATCH] Tests: cts-cli: simplify+fix regexp to catch
crm_time_as_string's output
Previously, the cts-cli would only work with a zero-offset time zone
(suggesting that it was only run in the CI that may be expected to
have it like that). Also drop the atypical enumeration of all digits
vs. range capture.
---
cts/cts-cli.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cts/cts-cli.in b/cts/cts-cli.in
index 34c094e76c..093dbcfa3a 100755
--- a/cts/cts-cli.in
+++ b/cts/cts-cli.in
@@ -938,7 +938,7 @@ for t in $tests; do
-e 's/^Entity: line [0-9][0-9]*: //'\
-e 's/\(validation ([0-9][0-9]* of \)[0-9][0-9]*\().*\)/\1X\2/' \
-e 's/^Migration will take effect until: .*/Migration will take effect until:/' \
- -e 's/ end=\"[-: 0123456789]*Z\?\"/ end=\"\"/' \
+ -e 's/ end=\"[0-9][-+: 0-9]*Z\?\"/ end=\"\"/' \
"$TMPFILE" > "${TMPFILE}.$$"
mv -- "${TMPFILE}.$$" "$TMPFILE"