зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1417603 - Use GECKO_HEAD_REPOSITORY to determine if mozscreenshots should be uploaded. r=me
MOZ_SOURCE_REPO only works on Linux
This commit is contained in:
Родитель
82ce106fa0
Коммит
4469f2c068
|
@ -55,8 +55,10 @@ this.TestRunner = {
|
|||
let screenshotPath = FileUtils.getFile("TmpD", subDirs).path;
|
||||
|
||||
const MOZ_UPLOAD_DIR = env.get("MOZ_UPLOAD_DIR");
|
||||
const MOZ_SOURCE_REPO = env.get("MOZ_SOURCE_REPO");
|
||||
if (MOZ_UPLOAD_DIR && !MOZ_SOURCE_REPO.includes("/integration/")) {
|
||||
const GECKO_HEAD_REPOSITORY = env.get("GECKO_HEAD_REPOSITORY");
|
||||
// We don't want to upload images (from MOZ_UPLOAD_DIR) on integration
|
||||
// branches in order to reduce bandwidth/storage.
|
||||
if (MOZ_UPLOAD_DIR && !GECKO_HEAD_REPOSITORY.includes("/integration/")) {
|
||||
screenshotPath = MOZ_UPLOAD_DIR;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче