diff options
author | bgottesman <bgottesman@1f5c12ca-751b-0410-a591-d2e778427230> | 2011-08-08 22:26:57 +0400 |
---|---|---|
committer | bgottesman <bgottesman@1f5c12ca-751b-0410-a591-d2e778427230> | 2011-08-08 22:26:57 +0400 |
commit | 0fe1c629da15c992f08c5c0823a39124c82841fc (patch) | |
tree | 3f3a0f6759b65d12608873977845c34840f78f0b /regression-testing | |
parent | 24f5bf6723460d838e2ef03158d0ff6ce700ddbf (diff) |
if we fail to make the output directory for a test, just abort the test, don't exit the whole script
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@4135 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'regression-testing')
-rw-r--r-- | regression-testing/run-test-detokenizer.t | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/regression-testing/run-test-detokenizer.t b/regression-testing/run-test-detokenizer.t index da6585cc8..22b796c6b 100644 --- a/regression-testing/run-test-detokenizer.t +++ b/regression-testing/run-test-detokenizer.t @@ -164,8 +164,7 @@ sub runDetokenizerTest { # Fail if we can't make the test output directory unless (mkdir($testOutputDir)) { - fail($testCase->getName().": Failed to create output directory ".$testOutputDir." [".$!."]"); - exit; + return fail($testCase->getName().": Failed to create output directory ".$testOutputDir." [".$!."]"); } open TOK, ">".$tokenizedFile; |