[jhbuild/ci-tests: 3/5] tests: Make the tests run again
- From: Christoph Reiter <creiter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [jhbuild/ci-tests: 3/5] tests: Make the tests run again
- Date: Sat, 21 Sep 2019 13:34:50 +0000 (UTC)
commit 71dde3aad32de447a329de648ef59b23a54b8ef3
Author: Christoph Reiter <reiter christoph gmail com>
Date: Sat Sep 21 14:45:24 2019 +0200
tests: Make the tests run again
tests/mock.py | 2 ++
tests/tests.py | 5 +++++
2 files changed, 7 insertions(+)
---
diff --git a/tests/mock.py b/tests/mock.py
index e707b5c2..6d5dd215 100644
--- a/tests/mock.py
+++ b/tests/mock.py
@@ -56,6 +56,8 @@ class Config(jhbuild.config.Config):
makeargs = ''
module_makeargs = {}
build_targets = ['install']
+ exit_on_error = False
+ disable_Werror = False
min_age = None
diff --git a/tests/tests.py b/tests/tests.py
index cdd9502c..8f4865f4 100644
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -121,6 +121,7 @@ class JhbuildConfigTestCase(unittest.TestCase):
config.top_builddir = os.path.join(config.prefix, '_jhbuild')
os.makedirs(config.checkoutroot)
os.makedirs(config.prefix)
+ config.buildroot = None
config.interact = False
config.quiet_mode = True # Not enough to disable output entirely
config.progress_bar = False
@@ -581,6 +582,7 @@ class SimpleBranch(object):
def __init__(self, name, dir_path):
self.branchname = name
self.srcdir = dir_path
+ self.checkoutdir = None
def checkout(self, buildscript):
pass
@@ -591,6 +593,9 @@ class SimpleBranch(object):
def tree_id(self):
return 'made-up-tree-id'
+ def get_module_basename(self):
+ return 'made-up-module-basename'
+
def restore_environ(env):
# os.environ.clear() doesn't appear to change underlying environment.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]