Skip to content

Commit

Permalink
Clean Robot log directory before running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
binary-koan committed Sep 25, 2016
1 parent a98a9f5 commit a8d3ec8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fabfile.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from os.path import abspath, basename, dirname, join
import sys
import shutil
from fabric.api import env

#
Expand Down Expand Up @@ -29,6 +30,8 @@ def add_paths(*args):

@task
def test(*args,**kwargs):
if os.path.isdir('robot_tests/logs'):
shutil.rmtree('robot_tests/logs')
os.execvp('robot', ('robot', '-d', 'robot_tests/logs') + args + ('robot_tests',))

@task
Expand Down

0 comments on commit a8d3ec8

Please sign in to comment.