fus: Write solvables to file
Instead of having one giant command line, write the long list into a file and pass that to the solver. The items on the input list are sorted for easy processing. JIRA: COMPOSE-3012 Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
4f712259d7
commit
9afb8e6801
6 changed files with 129 additions and 45 deletions
|
|
@ -32,6 +32,14 @@ class BaseTestCase(unittest.TestCase):
|
|||
fromfile='EXPECTED', tofile='ACTUAL'))
|
||||
self.assertEqual(diff, '', 'Files differ:\n' + diff)
|
||||
|
||||
def assertFileContent(self, fn, expected):
|
||||
with open(fn, 'rb') as f:
|
||||
lines = f.read().decode('utf-8').splitlines()
|
||||
diff = '\n'.join(difflib.unified_diff(
|
||||
lines, expected.splitlines(), fromfile='EXPECTED', tofile='ACTUAL')
|
||||
)
|
||||
self.assertEqual(diff, '', 'Files differ:\n' + diff)
|
||||
|
||||
|
||||
class PungiTestCase(BaseTestCase):
|
||||
def setUp(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue