summaryrefslogtreecommitdiff
path: root/tests/sources
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-10-04 17:39:07 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-10-10 19:29:59 +0900
commitfa512fef4765cc63ceeb4a901a3a517cb83606d6 (patch)
tree3585e1bf833e962e15e964ef9cec78d6a17c4c49 /tests/sources
parentce5a47973bb639c1f61cd65cce212bb0308f0134 (diff)
downloadbuildstream-fa512fef4765cc63ceeb4a901a3a517cb83606d6.tar.gz
Updated test cases for internal API changes stemming from project options
Diffstat (limited to 'tests/sources')
-rw-r--r--tests/sources/fixture.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/sources/fixture.py b/tests/sources/fixture.py
index 0f1bdb8f6..89e03cb8e 100644
--- a/tests/sources/fixture.py
+++ b/tests/sources/fixture.py
@@ -21,8 +21,8 @@ class Setup():
def __init__(self, datafiles, target, tmpdir):
directory = os.path.join(datafiles.dirname, datafiles.basename)
- self.context = Context('x86_64')
- self.project = Project(directory, 'x86_64')
+ self.context = Context([], 'x86_64')
+ self.project = Project(directory, self.context)
# A message handler is required
self.context._set_message_handler(message_handler)
@@ -35,7 +35,7 @@ class Setup():
if not os.path.exists(self.context.builddir):
os.mkdir(self.context.builddir)
- loader = Loader(directory, target, None, None)
+ loader = Loader(directory, target, self.project._options, None, None)
element = loader.load()
# Allow repo aliases to access files in the directories using tmpdir and datafiles