Exemplo n.º 1
0
    def create_root_test(self):
        """Test payload create root directory function."""
        with TemporaryDirectory() as temp:
            create_root_dir(temp)

            root_dir = os.path.join(temp, "/root")

            self.assertTrue(os.path.isdir(root_dir))
Exemplo n.º 2
0
 def run(self):
     """Create a root and write module blacklist."""
     create_root_dir(self._sysroot)
     write_module_blacklist(self._sysroot)