components/python/netaddr/patches/01-fix-tests.patch
author Rich Burridge <rich.burridge@oracle.com>
Mon, 02 Feb 2015 11:55:58 -0800
changeset 3716 a2629a2cf270
permissions -rw-r--r--
20451511 Yet more Userland components should have master test results to compare against
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3716
a2629a2cf270 20451511 Yet more Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
Fix Python netaddr tests so that they are always done in the same order and
a2629a2cf270 20451511 Yet more Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
therefore generate test results that we can successfully compare against a
a2629a2cf270 20451511 Yet more Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
master test results file.
a2629a2cf270 20451511 Yet more Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
a2629a2cf270 20451511 Yet more Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
This patch will be sent upstream.
a2629a2cf270 20451511 Yet more Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
a2629a2cf270 20451511 Yet more Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
--- netaddr-0.7.10/netaddr/tests/__init__.py.orig	2015-02-01 10:35:34.791261654 -0800
a2629a2cf270 20451511 Yet more Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
+++ netaddr-0.7.10/netaddr/tests/__init__.py	2015-02-01 10:44:21.299844898 -0800
a2629a2cf270 20451511 Yet more Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
@@ -38,7 +38,7 @@
a2629a2cf270 20451511 Yet more Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
         files = glob.glob(test_path)
a2629a2cf270 20451511 Yet more Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
         test_files.extend(files)
a2629a2cf270 20451511 Yet more Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
 
a2629a2cf270 20451511 Yet more Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
-    sys.stdout.write('testdir: %s\n' % '\n'.join(test_files))
a2629a2cf270 20451511 Yet more Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    14
+    sys.stdout.write('testdir: %s\n' % '\n'.join(sorted(test_files)))
a2629a2cf270 20451511 Yet more Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    15
 
a2629a2cf270 20451511 Yet more Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    16
     #   Add anything to the skiplist that we want to leave out.
a2629a2cf270 20451511 Yet more Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    17
     skiplist = []