Lines Matching full:os
34 import os
70 name = "qemu-bits-%d" % os.getpid()
83 'file,path=%s,id=debugcon' %os.path.join(self.base_temp_dir,
138 self.assertTrue(os.path.exists(bits_config_file))
139 self.assertTrue(os.path.exists(target_config_dir))
151 self.assertTrue(os.path.exists(bits_test_dir))
152 self.assertTrue(os.path.exists(target_test_dir))
154 for filename in os.listdir(bits_test_dir):
155 if os.path.isfile(os.path.join(bits_test_dir, filename)) and \
163 newfilename = os.path.splitext(filename)[0] + '.py'
164 shutil.copy2(os.path.join(bits_test_dir, filename),
165 os.path.join(target_test_dir, newfilename))
171 testfile_pyc = os.path.splitext(filename)[0] + '.pyc'
172 if os.access(os.path.join(target_test_dir, testfile_pyc),
173 os.F_OK):
174 os.remove(os.path.join(target_test_dir, testfile_pyc))
176 os.path.join(target_test_dir,
189 self.assertTrue(os.path.exists(grub_x86_64_mods))
190 self.assertTrue(os.path.exists(grub_i386_mods))
214 self.assertTrue(os.access(mkrescue_script,
215 os.R_OK | os.W_OK | os.X_OK))
222 if os.getenv('V') or os.getenv('BITS_DEBUG'):
239 self.assertTrue(os.access(iso_file, os.R_OK))
248 if not os.path.isdir(prebuiltDir):
249 os.mkdir(prebuiltDir, mode=0o775)
292 if os.getenv('V') or os.getenv('BITS_DEBUG'):
309 self.assertTrue(os.access(iso_file, os.R_OK))