Skip to content

Commit

Permalink
bugfix: Wipe tests/zones before generation
Browse files Browse the repository at this point in the history
It is possible for timezones to disappear (well, unlikely but still),
and in that case there will be leftover tests for gone zones under
tests/zones. So wipe tests/zones clean when generating (latest) tests.
For versioned tests, the tests go under temp, which is wiped by default
already.
  • Loading branch information
ichernev committed Aug 25, 2022
1 parent e850f9f commit f74a364
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ module.exports = function(grunt) {
},

clean: {
data: ['temp']
data: ['temp'],
tests: ['tests/zones'],
},

exec: {
Expand Down
3 changes: 3 additions & 0 deletions tasks/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ module.exports = function (grunt) {

if (!grunt.option('dirty-run')) {
grunt.task.run('clean:data');
if (version === 'latest') {
grunt.task.run('clean:tests');
}
}

grunt.task.run([
Expand Down

0 comments on commit f74a364

Please sign in to comment.