Fixed a problem with saving test results.

master
Pacman Ghost 4 years ago
parent 6fa454dd9a
commit 63ceda1044
  1. 5
      vasl_templates/webapp/tests/test_counters.py

@ -109,8 +109,9 @@ def test_counter_images( webapp ):
# initialize
check_dir = os.path.join( os.path.split(__file__)[0], "fixtures" )
save_dir = os.environ.get( "COUNTERS_SAVEDIR" ) # nb: define this to save the generated reports
if save_dir and os.path.isdir(save_dir):
shutil.rmtree( save_dir )
if save_dir:
if os.path.isdir( save_dir ):
shutil.rmtree( save_dir )
os.makedirs( save_dir )
# test each VASL module file in the specified directory

Loading…
Cancel
Save