Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
Fix repo-auth and proxygen options for batch mode
Browse files Browse the repository at this point in the history
  • Loading branch information
fredemmott committed Jun 4, 2015
1 parent 5355d7d commit 601acd5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions base/PerfOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,10 @@ public function __construct(Vector<string> $argv) {
$this->skipDatabaseInstall = $this->getBool('skip-database-install');
$this->noTimeLimit = $this->getBool('no-time-limit');
$this->waitAtEnd = $this->getBool('wait-at-end');
$this->proxygen = $this->hhvm && !$this->getBool('no-proxygen');
$this->proxygen = !$this->getBool('no-proxygen');
$this->applyPatches = $this->getBool('apply-patches');

$this->precompile = $this->hhvm && !$this->getBool('no-repo-auth');
$this->precompile = !$this->getBool('no-repo-auth');
$this->filecache = $this->getBool('file-cache');
$this->pcreCache = $this->getNullableString('pcre-cache');
$this->pcreSize = $this->getNullableInt('pcre-cache-size');
Expand Down Expand Up @@ -310,6 +310,10 @@ public function __construct(Vector<string> $argv) {
}

public function validate() {
if ($this->php5) {
$this->precompile = false;
$this->proxygen = false;
}
if ($this->notBenchmarkingArgs && !$this->notBenchmarking) {
$message = sprintf(
"These arguments are invalid without --i-am-not-benchmarking: %s",
Expand Down

0 comments on commit 601acd5

Please sign in to comment.