Skip to content

Commit 3c2966e

Browse files
author
Mike Kozicki
authored
Merge pull request #3105 from catchpoint/enable_instant_test
Enable instant test
2 parents e51fea3 + f26a061 commit 3c2966e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

www/archive.inc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ function RestoreArchive($id)
281281
{
282282
$isSaaSTest = (stripos($id, '_saas_') !== false);
283283
$saas_capture_prefix = GetSetting("cp_saas_capture_prefix");
284+
$isInstantTest = (stripos($id, '_instant_') !== false);
284285

285286
$ret = false;
286287
if (TestArchiveExpired($id)) {
@@ -309,7 +310,7 @@ function RestoreArchive($id)
309310
}
310311
}
311312
//saas tests do not specifiy capture server in the URL, so we'll hardcode it
312-
if ($isSaaSTest) {
313+
if ($isSaaSTest || $isInstantTest) {
313314
$capture_server = GetSetting("cp_capture_$saas_capture_prefix");
314315
$capture_salt = GetSetting("cp_capture_salt_$saas_capture_prefix");
315316
}
@@ -417,6 +418,9 @@ function RestoreArchive($id)
417418
if ($deleteZip) {
418419
@unlink($zipfile);
419420
}
421+
if ($isInstantTest) {
422+
ProcessUploadedTest($id);
423+
}
420424
}
421425
} else {
422426
$ret = true;

0 commit comments

Comments
 (0)