[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] tests: sort preselections to make test failures easier to read
From: |
Eric Blake |
Subject: |
[PATCH] tests: sort preselections to make test failures easier to read |
Date: |
Fri, 21 Sep 2012 15:36:36 -0600 |
Prompted by Stefano Lattarini's report of a test failure due to
a missing preselection for automake 1.12.
* tests/tools.at (autom4te preselections): Sort before diffing.
---
tests/tools.at | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/tools.at b/tests/tools.at
index 5a9ee63..4ffe3da 100644
--- a/tests/tools.at
+++ b/tests/tools.at
@@ -1190,7 +1190,7 @@ AT_CHECK([autoconf])
# If this test fails due to missing entries in lib/autom4te.in, then
# comparing the old and new requests is a good place to start debugging:
-cp autom4te.cache/requests old-requests
+sort autom4te.cache/requests >old-requests
echo newer >newer
$sleep # if `configure' is regenerated, we want it to be strictly newer,
# to catch the error consistently.
@@ -1198,7 +1198,7 @@ AT_CHECK([aclocal], [], [], [ignore])
AT_CHECK([automake --no-force --add-missing], [], [], [ignore])
AT_CHECK([autoconf])
AT_CHECK([test "`find configure -newer newer`" = "" ||
- { diff old-requests autom4te.cache/requests; exit 1; }],
+ { sort autom4te.cache/requests | diff old-requests -; exit 1; }],
[], [], [],
[extract_version=['s/^[^0-9]*\([0-9][^ ]*\).*/\1/;q']
automake_version=`automake --version | sed "$extract_version"`
--
1.7.11.4
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] tests: sort preselections to make test failures easier to read,
Eric Blake <=