Esempio n. 1
0
    def is_execution_a_hook(execution):
        """Is the given execution object for a test hook."""

        test_file = testname.normalize_test_file(execution["test_file"])
        return testname.is_resmoke_hook(test_file)
Esempio n. 2
0
        def key_function(execution):
            """Get the normalized test_file for the given execution."""

            return testname.normalize_test_file(execution["test_file"])
        def key_function(execution):
            """Get the normalized test_file for the given execution."""

            return testname.normalize_test_file(execution["test_file"])
    def is_execution_a_hook(execution):
        """Is the given execution object for a test hook."""

        test_file = testname.normalize_test_file(execution["test_file"])
        return testname.is_resmoke_hook(test_file)
 def test_unix_files_are_not_changed(self):
     unix_file = "test/found/under/unix"
     self.assertEqual(testname_utils.normalize_test_file(unix_file), unix_file)
 def test_windows_file_with_non_exe_ext(self):
     windows_file = "test\\found\\under\\windows.sh"
     self.assertEqual(
         testname_utils.normalize_test_file(windows_file), "test/found/under/windows.sh")
 def test_windows_file_is_normalized(self):
     windows_file = "test\\found\\under\\windows.exe"
     self.assertEqual(
         testname_utils.normalize_test_file(windows_file), "test/found/under/windows")