aboutsummaryrefslogtreecommitdiffstats
path: root/tests/option_tests.py
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2015-01-23 23:17:34 +0000
committerBryn M. Reeves <bmr@redhat.com>2015-07-07 20:56:57 +0100
commitb1f3b3373e8ef3e94238760a3e7e78d95c564260 (patch)
tree8eb1d1ce9773f84739facf96cfbfb76bd38a2cf2 /tests/option_tests.py
parent3eed62e132f67930bb1cf5c9eaa5927083011043 (diff)
downloadsos-b1f3b3373e8ef3e94238760a3e7e78d95c564260.tar.gz
[plugins] prefix target paths with self.sysroot
Prefix copyspecs with self.sysroot when using an alternate root path. Prefixes are applied before expanding copyspecs and the prefixed paths are stored as the 'srcpath' attribute in the archive. Destination paths in the report archive do not include the prefix. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Diffstat (limited to 'tests/option_tests.py')
-rw-r--r--tests/option_tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/option_tests.py b/tests/option_tests.py
index fe37ccfe..e8a26e2d 100644
--- a/tests/option_tests.py
+++ b/tests/option_tests.py
@@ -8,10 +8,11 @@ class GlobalOptionTest(unittest.TestCase):
def setUp(self):
self.commons = {
+ 'sysroot': '/',
'global_plugin_options': {
'test_option': 'foobar',
'baz': None,
- 'empty_global': True,
+ 'empty_global': True
},
}
self.plugin = Plugin(self.commons)