diff options
Diffstat (limited to 'guiTests/guiTest.py')
-rw-r--r-- | guiTests/guiTest.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/guiTests/guiTest.py b/guiTests/guiTest.py index 9a6695791..07238b700 100644 --- a/guiTests/guiTest.py +++ b/guiTests/guiTest.py @@ -159,8 +159,10 @@ wait_for_text(60, "//form[@id='restore']/div[3]/h3/div[1]", "Your files and fold sha1_restore = sha1_folder(RESTORE_FOLDER) # cleanup: delete source and restore folder and rename destination folder for direct restore -shutil.rmtree(SOURCE_FOLDER) -shutil.rmtree(RESTORE_FOLDER) +if os.path.exists(SOURCE_FOLDER): + shutil.rmtree(SOURCE_FOLDER) +if os.path.exists(RESTORE_FOLDER): + shutil.rmtree(RESTORE_FOLDER) os.rename(DESTINATION_FOLDER, DESTINATION_FOLDER_DIRECT_RESTORE) # direct restore |