Logo Search packages:      
Sourcecode: jockey version File versions  Download package

def sandbox::TestOSLib::__init__ (   self  ) 

Set default paths and load the module blacklist.

Distributors might want to override some default paths.

Reimplemented from jockey::oslib::OSLib.

Definition at line 205 of file sandbox.py.

00205                       :
        OSLib.__init__(self)

        # set up a fake environment
        self.workdir = tempfile.mkdtemp()
        atexit.register(shutil.rmtree, self.workdir)
        self._make_modinfo()
        self._make_proc_modules()
        self._make_modprobe()
        self._make_modalias()
        self._make_sys()
        self._make_xorg_conf()

        self.module_blacklist_file = os.path.join(self.workdir, 'module-blacklist')

        self.handler_dir = os.path.join(self.workdir, 'handlers')
        os.mkdir(self.handler_dir)
        self.check_cache = os.path.join(self.workdir, 'check_cache')
        self.backup_dir = os.path.join(self.workdir, 'backup')
        os.mkdir(self.backup_dir)

        self.installed_packages = set(['mesa-std', 'coreutils'])
        self.next_package_install_fails = False

        self.reboot_flag = False

        self.help_available = False
        self.help_called = False

    def _make_modinfo(self):


Generated by  Doxygen 1.6.0   Back to index