Lines Matching full:os
35 import os
65 paths=os.getenv('PATH')
66 for p in paths.split(os.path.pathsep):
67 p = os.path.join(p, tool)
68 if os.path.exists(p) and os.access(p, os.X_OK):
103 name = "qemu-bits-%d" % os.getpid()
116 'file,path=%s,id=debugcon' %os.path.join(self.base_temp_dir,
169 bits_config_dir = os.path.join(self._baseDir, 'acpi-bits',
171 target_config_dir = os.path.join(self.workdir,
174 self.assertTrue(os.path.exists(bits_config_dir))
175 self.assertTrue(os.path.exists(target_config_dir))
176 self.assertTrue(os.access(os.path.join(bits_config_dir,
177 config_file), os.R_OK))
178 shutil.copy2(os.path.join(bits_config_dir, config_file),
186 bits_test_dir = os.path.join(self._baseDir, 'acpi-bits',
188 target_test_dir = os.path.join(self.workdir,
192 self.assertTrue(os.path.exists(bits_test_dir))
193 self.assertTrue(os.path.exists(target_test_dir))
195 for filename in os.listdir(bits_test_dir):
196 if os.path.isfile(os.path.join(bits_test_dir, filename)) and \
204 newfilename = os.path.splitext(filename)[0] + '.py'
205 shutil.copy2(os.path.join(bits_test_dir, filename),
206 os.path.join(target_test_dir, newfilename))
212 testfile_pyc = os.path.splitext(filename)[0] + '.pyc'
213 if os.access(os.path.join(target_test_dir, testfile_pyc),
214 os.F_OK):
215 os.remove(os.path.join(target_test_dir, testfile_pyc))
217 os.path.join(target_test_dir,
227 grub_x86_64_mods = os.path.join(self.workdir, 'grub-inst-x86_64-efi')
228 grub_i386_mods = os.path.join(self.workdir, 'grub-inst')
230 self.assertTrue(os.path.exists(grub_x86_64_mods))
231 self.assertTrue(os.path.exists(grub_i386_mods))
249 bits_dir = os.path.join(self.workdir,
251 iso_file = os.path.join(self.workdir,
253 mkrescue_script = os.path.join(self.workdir,
257 self.assertTrue(os.access(mkrescue_script,
258 os.R_OK | os.W_OK | os.X_OK))
265 if os.getenv('V') or os.getenv('BITS_DEBUG'):
282 self.assertTrue(os.access(iso_file, os.R_OK))
292 prebuiltDir = os.path.join(self.workdir, 'prebuilt')
293 if not os.path.isdir(prebuiltDir):
294 os.mkdir(prebuiltDir, mode=0o775)
296 bits_zip_file = os.path.join(prebuiltDir, 'bits-%d-%s.zip'
299 grub_tar_file = os.path.join(prebuiltDir,
326 debugconf = os.path.join(self.workdir, self._debugcon_log)
343 if os.getenv('V') or os.getenv('BITS_DEBUG'):
358 iso_file = os.path.join(self.workdir,
361 self.assertTrue(os.access(iso_file, os.R_OK))