diff --git a/python/TestHarness/testers/RunException.py b/python/TestHarness/testers/RunException.py index a26af4ef4321..40cdb2145474 100644 --- a/python/TestHarness/testers/RunException.py +++ b/python/TestHarness/testers/RunException.py @@ -67,7 +67,7 @@ def processResults(self, moose_dir, options, output): output += "#"*80 + "\n\nUnable to match the following pattern against the program's output:\n\n" + specs['expect_err'] + "\n" if reason == '': - RunApp.testFileOutput(self, moose_dir, options, output) + reason = RunApp.testFileOutput(self, moose_dir, options, output) if reason != '': self.setStatus(reason, self.bucket_fail) diff --git a/python/chigger/tests/line_sample/tests b/python/chigger/tests/line_sample/tests index 2b830454ce0c..745f0be6c514 100644 --- a/python/chigger/tests/line_sample/tests +++ b/python/chigger/tests/line_sample/tests @@ -22,8 +22,9 @@ [../] [./line_sample_error] - type = RunException + type = RunApp command = line_sample_error.py - expect_err = "Unable to locate the variable, invalid_name, in the supplied source data." + expect_out = "Unable to locate the variable, invalid_name, in the supplied source data." + errors = "zzzzzzz" # Supress default error checking [../] [] diff --git a/test/tests/misc/check_error/tests b/test/tests/misc/check_error/tests index 51a9bebc280c..b1e1b3b0371d 100644 --- a/test/tests/misc/check_error/tests +++ b/test/tests/misc/check_error/tests @@ -92,16 +92,16 @@ [../] [./deprecated_param_default] - type = 'RunException' + type = 'RunApp' input = 'deprecated_param_test.i' - expect_err = "The parameter \w+ is deprecated." + expect_out = "The parameter \w+ is deprecated." cli_args = 'Kernels/nan/deprecated_default=1' [../] [./deprecated_param_no_default] - type = 'RunException' + type = 'RunApp' input = 'deprecated_param_test.i' - expect_err = "The parameter \w+ is deprecated." + expect_out = "The parameter \w+ is deprecated." cli_args = 'Kernels/nan/deprecated_no_default=1' [../] @@ -611,4 +611,9 @@ input = 'coupling_itself.i' expect_err = "Coupled variable 'v' needs to be different from 'variable' with CoupledForce" [../] + [./missing_input] + type = 'RunException' + input = 'missing_input_file.i' + expect_err = "Unable to open file" + [../] []