Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable instant test #3105

Merged
merged 3 commits into from
Sep 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion www/archive.inc
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ function RestoreArchive($id)
{
$isSaaSTest = (stripos($id, '_saas_') !== false);
$saas_capture_prefix = GetSetting("cp_saas_capture_prefix");
$isInstantTest = (stripos($id, '_instant_') !== false);

$ret = false;
if (TestArchiveExpired($id)) {
Expand Down Expand Up @@ -309,7 +310,7 @@ function RestoreArchive($id)
}
}
//saas tests do not specifiy capture server in the URL, so we'll hardcode it
if ($isSaaSTest) {
if ($isSaaSTest || $isInstantTest) {
$capture_server = GetSetting("cp_capture_$saas_capture_prefix");
$capture_salt = GetSetting("cp_capture_salt_$saas_capture_prefix");
}
Expand Down Expand Up @@ -417,6 +418,9 @@ function RestoreArchive($id)
if ($deleteZip) {
@unlink($zipfile);
}
if ($isInstantTest) {
ProcessUploadedTest($id);
}
}
} else {
$ret = true;
Expand Down
Loading