Exemple #1
0
 def test_xml(self):
     # Test when a file is already present that the index is increasing
     # accordingly.
     open(os.path.join(self.tmpdir, 'a.xml'), 'w').close()
     open(os.path.join(self.tmpdir, 'a_0.xml'), 'w').close()
     open(os.path.join(self.tmpdir, 'a_1.xml'), 'w').close()
     self.assertEqual(
         os.path.join(self.tmpdir, 'a_2.xml'),
         run_test_cases.gen_gtest_output_dir(self.tmpdir, 'xml:a.xml'))
Exemple #2
0
 def test_xml(self):
   # Test when a file is already present that the index is increasing
   # accordingly.
   open(os.path.join(self.tmpdir, 'a.xml'), 'w').close()
   open(os.path.join(self.tmpdir, 'a_0.xml'), 'w').close()
   open(os.path.join(self.tmpdir, 'a_1.xml'), 'w').close()
   self.assertEqual(
       os.path.join(self.tmpdir, 'a_2.xml'),
       run_test_cases.gen_gtest_output_dir(self.tmpdir, 'xml:a.xml'))
Exemple #3
0
 def test_xml_default(self):
     self.assertEqual(
         os.path.join(self.tmpdir, 'test_detail.xml'),
         run_test_cases.gen_gtest_output_dir(self.tmpdir, 'xml'))
Exemple #4
0
 def test_xml_default(self):
   self.assertEqual(
       os.path.join(self.tmpdir, 'test_detail.xml'),
       run_test_cases.gen_gtest_output_dir(self.tmpdir, 'xml'))