Skip to content

Commit

Permalink
Bug fix: test.bat cleans up conversion files generated in FT even on …
Browse files Browse the repository at this point in the history
…failure
  • Loading branch information
amad-person committed Apr 11, 2019
1 parent c453d27 commit b4b602a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/functional/test.bat
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,17 @@ for %%a in (%sites_convert%) do (

node testUtil/test.js %%a

if errorlevel 1 (
echo Test %%a Failed
exit /b %errorlevel%
)
call set level=%%errorlevel%%

rmdir /s /q %%a\_site
rmdir /s /q %%a\non_markbind_site\_markbind
rmdir /s /q %%a\non_markbind_site\_site
del %%a\non_markbind_site\about.md %%a\non_markbind_site\index.md %%a\non_markbind_site\site.json

if %level%==1 (
echo Test %%a Failed
exit /b %level%
)
)

echo Test passed
Expand Down

0 comments on commit b4b602a

Please sign in to comment.