summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2013-09-17 14:59:59 +0300
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>2014-01-31 13:25:24 +0200
commit708df663f81d8e5984b6dbf4ad14761a6ef6f2af (patch)
treeb5ddf74d58682ade7caff9c4d08b265ec8e083a0 /tests
parentfc714089322c63ac6384903d66200df1ed9e0446 (diff)
downloadgit-buildpackage-708df663f81d8e5984b6dbf4ad14761a6ef6f2af.tar.gz
git-buildpackage-708df663f81d8e5984b6dbf4ad14761a6ef6f2af.tar.bz2
git-buildpackage-708df663f81d8e5984b6dbf4ad14761a6ef6f2af.zip
rpm.SpecFile: add 'specpath' attribute
Change-Id: Ib731e2e212808341fea68ff42b83d71e8917e1a7 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/test_rpm.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_rpm.py b/tests/test_rpm.py
index ccb9b362..d2fd736d 100644
--- a/tests/test_rpm.py
+++ b/tests/test_rpm.py
@@ -91,6 +91,7 @@ class TestSpecFile(object):
# Test basic properties
assert spec.specfile == os.path.basename(spec_filepath)
assert spec.specdir == os.path.dirname(spec_filepath)
+ assert spec.specpath == spec_filepath
assert spec.name == 'gbp-test'
assert spec.packager is None
@@ -374,5 +375,6 @@ class TestUtilityFunctions(object):
spec = guess_spec_repo(repo, 'HEAD', recursive=True)
assert spec.specfile == 'gbp-test.spec'
assert spec.specdir == 'packaging'
+ assert spec.specpath == 'packaging/gbp-test.spec'
# vim:et:ts=4:sw=4:et:sts=4:ai:set list listchars=tab\:»·,trail\:·: