$testInfo_dirty = true; } // Do any post-processing on this individual run that doesn't requre the test to be locked if (isset($runNumber) && isset($cacheWarmed)) { $resultProcessing = new ResultProcessing($testPath, $id, $runNumber, $cacheWarmed); $testerError = $resultProcessing->postProcessRun(); if ($testInfo['fvonly'] || $cacheWarmed) { if (!array_key_exists('test_runs', $testInfo)) { $testInfo['test_runs'] = array(); } if (array_key_exists($runNumber, $testInfo['test_runs'])) { $testInfo['test_runs'][$runNumber]['done'] = true; } else { $testInfo['test_runs'][$runNumber] = array('done' => true); } $numSteps = $resultProcessing->countSteps(); $reportedSteps = 0; if (!empty($testInfo['test_runs'][$runNumber]['steps'])) { $reportedSteps = $testInfo['test_runs'][$runNumber]['steps']; if ($reportedSteps != $numSteps) { $testerError = "Number of steps for first and repeat view differ (fv: {$reportedSteps}, rv: {$numSteps})"; } } $testInfo['test_runs'][$runNumber]['steps'] = max($numSteps, $reportedSteps); $testInfo_dirty = true; } if (!GetSetting('disable_video_processing')) { if ($testInfo['video']) { $workdone_video_start = microtime(true); } ProcessAVIVideo($testInfo, $testPath, $runNumber, $cacheWarmed, $max_load);
public function testCountStepsRunDoesntExist() { // there is no second run $resultProcessing = new ResultProcessing($this->resultDir, $this->testId, 2, false); $this->assertEquals(0, $resultProcessing->countSteps()); }