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:
Matthew Noorenberghe 2017-12-21 00:55:53 -05:00
Родитель 82ce106fa0
Коммит 4469f2c068
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -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;
}