diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2012-12-04 12:00:52 +0200 |
---|---|---|
committer | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2014-01-14 13:48:22 +0200 |
commit | d6f1fbe59c6df42cc3d5f534ee20ad4f4a8f651c (patch) | |
tree | 71a39d43d1f6bf43431c67fd0d3936d8f4d5eaa7 /tests | |
parent | 961e1f15ccee6f92a803de1ee100f9ca854119f3 (diff) | |
download | git-buildpackage-d6f1fbe59c6df42cc3d5f534ee20ad4f4a8f651c.tar.gz git-buildpackage-d6f1fbe59c6df42cc3d5f534ee20ad4f4a8f651c.tar.bz2 git-buildpackage-d6f1fbe59c6df42cc3d5f534ee20ad4f4a8f651c.zip |
rpm refactor: split spec parsing into multiple methods
Also, record all tags and macros from the spec in separate internal
structures.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_rpm.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_rpm.py b/tests/test_rpm.py index a651fe2c..55bb4159 100644 --- a/tests/test_rpm.py +++ b/tests/test_rpm.py @@ -114,7 +114,6 @@ class TestSpecFile(object): orig = spec.orig_src assert orig['filename'] == 'gbp-test2-3.0.tar.gz' - assert orig['full_path'] == 'ftp://ftp.host.com/gbp-test2-3.0.tar.gz' assert orig['archive_fmt'] == 'tar' assert orig['compression'] == 'gzip' assert orig['prefix'] == '' @@ -166,8 +165,9 @@ class TestSpecFile(object): reference_spec = os.path.join(SPEC_DIR, 'gbp-test2-reference2.spec') spec = SpecFile(tmp_spec) - spec.update_patches(['new.patch']) + spec.update_patches(['1.patch', '2.patch']) spec.set_tag('vcs', 'myvcstag') + spec.update_patches(['new.patch']) spec.write_spec_file() assert filecmp.cmp(tmp_spec, reference_spec) is True |