summaryrefslogtreecommitdiff
path: root/tests/buildtest.cmd
diff options
context:
space:
mode:
authorTanner Gooding <tannergooding@users.noreply.github.com>2015-05-01 10:54:04 -0700
committerTanner Gooding <tannergooding@users.noreply.github.com>2015-05-01 10:54:04 -0700
commit1272e792d82ab47c6950a99eb685150cacad98ee (patch)
tree57beb959f6c82e599b7c979c6a57d795d9fe354a /tests/buildtest.cmd
parent55a733da472a729d7e4a1d7de5e5458299d8f736 (diff)
downloadcoreclr-1272e792d82ab47c6950a99eb685150cacad98ee.tar.gz
coreclr-1272e792d82ab47c6950a99eb685150cacad98ee.tar.bz2
coreclr-1272e792d82ab47c6950a99eb685150cacad98ee.zip
Only clean previous output for the selected configuration.
This modifies the `build.cmd`, `build.sh`, and `buildtest.cmd` to only remove previous output (binaries, intermediates, and logs) for the selected configuration when the `clean` argument is specified. This also modifies `runtest.cmd` to output log files in the same format as `build.cmd`, `build.sh`, and `buildtest.cmd` do currently.
Diffstat (limited to 'tests/buildtest.cmd')
-rw-r--r--tests/buildtest.cmd5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/buildtest.cmd b/tests/buildtest.cmd
index e2b45b1f1e..bcb09597de 100644
--- a/tests/buildtest.cmd
+++ b/tests/buildtest.cmd
@@ -57,8 +57,9 @@ echo.
:: MSBuild projects would need a rebuild
set __MSBCleanBuildArgs=/t:rebuild
-:: Cleanup the binaries drop folder
-if exist "%__TestBinDir%" rmdir /S /Q "%__TestBinDir%"
+:: Cleanup the binaries drop folder for the current configuration
+if exist "%__TestBinDir%" rd /s /q "%__TestBinDir%"
+if exist "%__NativeTestIntermediatesDir%" rd /s /q "%__NativeTestIntermediatesDir%"
:MakeDirectories
if not exist "%__TestBinDir%" md "%__TestBinDir%"