From 001877f6444d1640b01d0362e01c3ec4dc2fa566 Mon Sep 17 00:00:00 2001 From: Sascha Mann Date: Thu, 19 Jan 2017 23:08:01 +0100 Subject: [PATCH 1/2] Fix removal of temp directory if tests fail --- runtests.jl | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/runtests.jl b/runtests.jl index 613d55d2fbd9f..b1e25a50e3883 100644 --- a/runtests.jl +++ b/runtests.jl @@ -16,14 +16,16 @@ for (root, dirs, files) in walkdir("exercises") cp(joinpath(exercise_path, "example.jl"), joinpath(temp_path, "$exercise.jl")) cp(joinpath(exercise_path, "runtests.jl"), joinpath(temp_path, "runtests.jl")) - # Run the tests - result = @testset "$exercise example" begin - include(joinpath(temp_path, "runtests.jl")) + try + # Run the tests + result = @testset "$exercise example" begin + include(joinpath(temp_path, "runtests.jl")) + end + finally + # Delete the temporary directory + rm(temp_path, recursive=true) end - # Delete the temporary directory - rm(temp_path, recursive=true) - # Print test output (this is the default behaviour for older versions of Julia) if VERSION > v"0.6.0-dev" Base.Test.print_test_results(result) From 4bfca0acca60dcff7c95255cf4f40d33a3d2fd21 Mon Sep 17 00:00:00 2001 From: Sascha Mann Date: Mon, 23 Jan 2017 13:22:06 +0100 Subject: [PATCH 2/2] Add juliamnt to ignored directories for the configlet --- config.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config.json b/config.json index 2910cf2756ba0..837f57da49859 100644 --- a/config.json +++ b/config.json @@ -13,7 +13,8 @@ "ignored": [ "bin", "img", - "docs" + "docs", + "juliamnt" ], "foregone": [