Fix tests by introducing stable sort. #80

This commit is contained in:
Andrey Smirnov
2014-08-28 22:03:06 +04:00
parent 65efe0cd2a
commit 02d86422a8
3 changed files with 4282 additions and 4278 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,3 +1,4 @@
coreutils_8.13-3.5_amd64
coreutils_8.13-3.5_i386
coreutils_8.13-3.5_source
coreutils_8.13-3.5_source

View File

@@ -6,6 +6,7 @@ class SearchPackage1Test(BaseTest):
search package: regular search
"""
fixtureDB = True
outputMatchPrepare = lambda _, s: "\n".join(sorted(s.split("\n")))
runCmd = "aptly package search '$$Architecture (i386), Name (% *-dev)'"
@@ -29,4 +30,5 @@ class SearchPackage4Test(BaseTest):
search package: by dependency
"""
fixtureDB = True
outputMatchPrepare = lambda _, s: "\n".join(sorted(s.split("\n")))
runCmd = "aptly package search coreutils"