Blame SOURCES/0010-tests-functions-implement-a-better-m4_strip.patch
|
|
24f428 |
From dd88ab1b9b739600285793b9f33a826648a40bd6 Mon Sep 17 00:00:00 2001
|
|
|
24f428 |
From: Eric Garver <e@erig.me>
|
|
|
24f428 |
Date: Tue, 6 Nov 2018 15:45:51 -0500
|
|
|
24f428 |
Subject: [PATCH 10/23] tests/functions: implement a better m4_strip()
|
|
|
24f428 |
|
|
|
24f428 |
m4sugar's version is buggy and adds a space after newlines.
|
|
|
24f428 |
|
|
|
24f428 |
(cherry picked from commit f6a3116ee1df7990362bf08cc48bc05db75a4d18)
|
|
|
24f428 |
---
|
|
|
24f428 |
src/tests/functions.at | 6 ++++++
|
|
|
24f428 |
1 file changed, 6 insertions(+)
|
|
|
24f428 |
|
|
|
24f428 |
diff --git a/src/tests/functions.at b/src/tests/functions.at
|
|
|
24f428 |
index 2910342a72be..7776938dba32 100644
|
|
|
24f428 |
--- a/src/tests/functions.at
|
|
|
24f428 |
+++ b/src/tests/functions.at
|
|
|
24f428 |
@@ -207,6 +207,12 @@ m4_define([TRIMV], [[sed -e '/^[ \t]*$/d']])
|
|
|
24f428 |
m4_define([TRIM_INTERNAL], [[sed -e 's/[ \t]\+/ /g']])
|
|
|
24f428 |
m4_define([TRIM_WHITESPACE], [TRIM | TRIMV | TRIM_INTERNAL])
|
|
|
24f428 |
|
|
|
24f428 |
+dnl m4sugar's m4_strip has a bug that causes it to print a space after
|
|
|
24f428 |
+dnl newlines. So implement our own suck-less version.
|
|
|
24f428 |
+m4_define([m4_strip],
|
|
|
24f428 |
+[m4_bpatsubsts([$1], [[ ]+], [ ],
|
|
|
24f428 |
+ [^ ?\(.*\) ?$], [\1])])
|
|
|
24f428 |
+
|
|
|
24f428 |
m4_define([NS_CMD], [dnl
|
|
|
24f428 |
env DBUS_SYSTEM_BUS_ADDRESS="CURRENT_DBUS_ADDRESS" ip netns exec CURRENT_TEST_NS $1 dnl
|
|
|
24f428 |
])
|
|
|
24f428 |
--
|
|
|
24f428 |
2.20.1
|
|
|
24f428 |
|