Skip to content

Commit

Permalink
Remove all .log and .yml files in regtest when running task regtest
Browse files Browse the repository at this point in the history
The intention behind this is, to ensure that this files are recreated
when regtest is running. So it is possible to check if regtest works at
all.
  • Loading branch information
janfri committed May 16, 2023
1 parent ef64386 commit 2ce1d7a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,13 @@ if RUBY_ENGINE == 'jruby'
REGTEST_FILES_RB.reject! {|fn| fn =~ /metatest/}
end

task :before_regtest do
verbose false do
rm_rf 'regtest/*.log'
rm_rf 'regtest/*.yml'
end
end

task :regtest => :before_regtest
task :test => :regtest
task :default => :test

0 comments on commit 2ce1d7a

Please sign in to comment.