From e9c073178313ec48671029ba702443e90d5a0a62 Mon Sep 17 00:00:00 2001 From: Ratnadeep Debnath Date: Mon, 29 Aug 2016 23:27:21 +0530 Subject: [PATCH] Added default value for nulecule library path for functional tests. The default value is assumed to be a directory named 'nulecule-library' adjacent to the 'atomicapp' directory. --- tests/system/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/system/base.py b/tests/system/base.py index 2f0cb06d..ddd5ded3 100644 --- a/tests/system/base.py +++ b/tests/system/base.py @@ -79,7 +79,8 @@ def get_tmp_answers_file(self, answers): @property def nulecule_lib(self): - return os.environ['NULECULE_LIB'] + return os.environ.get('NULECULE_LIB') or \ + os.path.join(os.path.dirname(__file__), '../../../nulecule-library') @classmethod def disable_selinux(cls):