Move deletion of PAL tests to after they need to be run
authorwtgodbe <wigodbe@microsoft.com>
Thu, 21 Apr 2016 22:23:29 +0000 (15:23 -0700)
committerwtgodbe <wigodbe@microsoft.com>
Thu, 21 Apr 2016 22:23:29 +0000 (15:23 -0700)
netci.groovy

index fd32b8f..9bb4441 100755 (executable)
@@ -1230,13 +1230,17 @@ combinedScenarios.each { scenario ->
                                             buildCommands += "rm -rf ./bin/obj/Linux.x64.Release/src/dlls/dbgshim"
                                             buildCommands += "rm -rf ./bin/obj/Linux.x64.Release/src/dlls/mscordac"
                                             buildCommands += "rm -rf ./bin/obj/Linux.x64.Release/src/dlls/mscordbi"
-                                            buildCommands += "rm -rf ./bin/obj/Linux.x64.Release/src/pal/tests"
                                         }
                                         else
                                         {
                                             buildCommands += "./build.sh verbose ${lowerConfiguration} ${architecture}"
                                         }
                                         buildCommands += "src/pal/tests/palsuite/runpaltests.sh \${WORKSPACE}/bin/obj/${osGroup}.${architecture}.${configuration} \${WORKSPACE}/bin/paltestout"
+
+                                        // Delete PAL test obj files after we run them, if this is a coverage job
+                                        if (scenario == 'coverage') {
+                                            buildCommands += "rm -rf ./bin/obj/Linux.x64.Release/src/pal/tests"
+                                        }
                                     
                                         // Set time out
                                         setTestJobTimeOut(newJob, scenario)