mirror of
https://github.com/JuliaFEM/JuliaFEM.jl.git
synced 2026-09-20 18:18:31 +00:00
little bug in result printing
This commit is contained in:
+1
-1
@@ -50,7 +50,7 @@ function run_test(filename::ASCIIString, test_function=nothing)
|
||||
catch error
|
||||
warn("Unable to include file $filename for testing.")
|
||||
err = Base.showerror(Base.STDOUT, error)
|
||||
push!(test_results, TestResult(filename, "Unable to include file: $err"))
|
||||
push!(test_results, TestResult(filename, "Unable to include file: $error"))
|
||||
return
|
||||
end
|
||||
if isa(test_function, Void)
|
||||
|
||||
+1
-1
@@ -115,7 +115,7 @@ function run_tests()
|
||||
passed, failed, errors, critical = print_test_statistics()
|
||||
|
||||
# at the very end throw error if something is failed
|
||||
if failed + errors critical != 0
|
||||
if failed + errors + critical > 0
|
||||
error("Some tests has failed. Fix them. Now.")
|
||||
exit(1)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user