Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 50 for waitForFinish (0.23 sec)

  1. platforms/software/dependency-management/src/crossVersionTest/groovy/org/gradle/integtests/resolve/caching/ConcurrentBuildsCachingCrossVersionIntegrationTest.groovy

            block2.waitForAllPendingCalls()
    
            // Finish up build 1 and 2
            block1.releaseAll() // finish build 1 while build 2 is still running
            build1.waitForFinish()
            block2.releaseAll()
            build2.waitForFinish()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  2. platforms/core-runtime/logging/src/integTest/groovy/org/gradle/internal/logging/console/jvm/AbstractConsoleJvmTestWorkerFunctionalTest.groovy

                containsTestExecutionWorkInProgressLine(gradleHandle, ':test', testClass2.renderedClassName)
            }
    
            testExecution.release(2)
            gradleHandle.waitForFinish()
    
            where:
            testClass1                    | testClass2                    | description
            JavaTestClass.PRESERVED_TEST1 | JavaTestClass.PRESERVED_TEST2 | 'preserved'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  3. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerDaemonProcessFailureIntegrationTest.groovy

            kill(pid1)
    
            when:
            handler.releaseAll()
            result = gradle.waitForFinish()
    
            then:
            outputContainsKilledWorkerWarning()
        }
    
        static void kill(long pid1) {
            def proc = new ProcessFixture(pid1)
            proc.kill(false)
            proc.waitForFinish()
        }
    
        void outputContainsKilledWorkerWarning() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 07 18:43:14 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  4. testing/integ-test/src/integTest/groovy/org/gradle/integtests/BuildSourceBuilderIntegrationTest.groovy

            def runReleaseHandle = executer.withTasks("build2").usingInitScript(initScriptFile).start()
    
            and:
            def releaseResult = runReleaseHandle.waitForFinish()
            def blockingResult = runBlockingHandle.waitForFinish()
    
            then:
            blockingResult.ignoreBuildSrc.assertTasksExecuted(":build1")
            releaseResult.ignoreBuildSrc.assertTasksExecuted(":build2")
    
            cleanup:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5K bytes
    - Viewed (0)
  5. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/java/compile/daemon/JavaCompileDaemonCancellationIntegrationTest.groovy

            cancelBuild()
    
            then:
            daemons.daemon.becomesIdle()
    
            and:
            pidFile().exists()
            def pid1 = pidFile().text.strip() as long
            new ProcessFixture(pid1).waitForFinish()
    
            when:
            handler = blockingHttpServer.expectAndBlock("/block")
            startBuild("compileJava")
    
            then:
            handler.waitForAllPendingCalls()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 19:57:50 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  6. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/ForkingGradleHandle.java

        }
    
        @Override
        public ExecutionResult waitForFinish() {
            return waitForStop(false);
        }
    
        @Override
        public ExecutionFailure waitForFailure() {
            return (ExecutionFailure) waitForStop(true);
        }
    
        @Override
        public void waitForExit() {
            getExecHandle().waitForFinish().rethrowFailure();
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 9K bytes
    - Viewed (0)
  7. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/GradleHandle.java

         */
        GradleHandle cancelWithEOT();
    
        /**
         * Blocks until the build is complete and assert that the build completed successfully.
         */
        ExecutionResult waitForFinish();
    
        /**
         * Blocks until the build is complete and assert that the build completed with a failure.
         */
        ExecutionFailure waitForFailure();
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  8. platforms/core-runtime/logging/src/integTest/groovy/org/gradle/internal/logging/console/taskgrouping/AbstractBasicGroupedTaskLoggingFunctionalTest.groovy

            handle.waitForAllPendingCalls()
            assertOutputContains(gradle, "Before")
            handle.releaseAll()
            result = gradle.waitForFinish()
    
            then:
            result.groupedOutput.task(':log').output == 'Before\nAfter'
    
            cleanup:
            gradle?.waitForFinish()
        }
    
        String callFromBuild(String name) {
            return "new URL('${server.uri}/${name}').text"
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  9. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/ProcessFixture.groovy

            }
            return bash("ps -o pid,ppid,args -p ${pids.join(' -p ')}").split("\\n")
        }
    
        /**
         * Blocks until the process represented by {@link #pid} has exited.
         */
        void waitForFinish() {
            if (pid == null) {
                throw new RuntimeException("Unable to wait for process to finish because provided pid is null!")
            }
            if (OperatingSystem.current().unix) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  10. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/KillProcessAvailability.groovy

                        .redirectErrorStream()
                        .workingDir(new File(".").absoluteFile) //does not matter
                        .build()
                e.start()
                def result = e.waitForFinish()
                CAN_KILL = result.exitValue == 0
            } else {
                CAN_KILL = false
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.5K bytes
    - Viewed (0)
Back to top