commit | 52e4203628d4f083b8b4d962704baeb2eb71fe70 | [log] [tgz] |
---|---|---|
author | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | Tue Mar 31 23:20:13 2015 +0900 |
committer | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | Tue Mar 31 23:20:13 2015 +0900 |
tree | dccf4631f718fd9be6e9efab38b6e1240cbf2303 | |
parent | a67d60c49a9d2cd17626134058488f0cbe153045 [diff] [blame] |
Do not rmdir test directories The old behavior is not useful when you are in the test output directory.
diff --git a/runtest.rb b/runtest.rb index def12e9..3fb73a5 100755 --- a/runtest.rb +++ b/runtest.rb
@@ -21,8 +21,11 @@ name = mk[/([^\/]+)\.mk$/, 1] dir = "out/#{name}" - FileUtils.rm_rf(dir) + FileUtils.mkdir_p(dir) + Dir.glob("#{dir}/*").each do |fname| + FileUtils.rm_rf(fname) + end Dir.chdir(dir) do File.open("Makefile", 'w') do |ofile|