Implement part of test_modules_abi_vs_tools
[deliverable/lttng-ivc.git] / lttng_ivc / utils / project.py
index 7e9957113502fda537d2cc1115c979148e56188b..7adf5add7e4e2b96b2a3d834f867c5e8064a9967 100644 (file)
@@ -3,6 +3,9 @@ import shutil
 import git
 import subprocess
 import logging
+import lttng_ivc.settings as Settings
+
+from lttng_ivc.utils.utils import sha256_checksum
 
 _logger = logging.getLogger('project')
 
@@ -23,12 +26,15 @@ class Project(object):
 
         """ A collection of Project dependencies """
         self.dependencies = {}
+        # used for project cache and pickle validation
         self._immutable = False
+        self._py_file_checksum = sha256_checksum(Settings.project_py_file_location)
 
         # State
         self.isBuilt = False
         self.isConfigured = False
         self.isInstalled = False
+        self.skip = False
 
         self.basedir = tmpdir
         self.log_path = os.path.join(tmpdir, "log")
@@ -277,7 +283,7 @@ class Lttng_modules(Project):
     def __init__(self, label, git_path, sha1, tmpdir):
         super(Lttng_modules, self).__init__(label=label, git_path=git_path,
                                             sha1=sha1, tmpdir=tmpdir)
-        self.add_special_env_variable("MODPROBE_OPTIONS","-b {}".format(self.installation_path))
+        self.add_special_env_variable("MODPROBE_OPTIONS","-d {}".format(self.installation_path))
 
     def bootstrap(self):
         pass
This page took 0.023832 seconds and 5 git commands to generate.