зеркало из https://github.com/mozilla/gecko-dev.git
Bug 751652 - Disable MAR tests when security checks are disabled. r=rstrong
This commit is contained in:
Родитель
227a58f1ef
Коммит
cb519f74fc
|
@ -80,6 +80,13 @@ const IS_ANDROID = true;
|
|||
const IS_ANDROID = false;
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef MOZ_VERIFY_MAR_SIGNATURE
|
||||
const IS_MAR_CHECKS_ENABLED = true;
|
||||
#else
|
||||
const IS_MAR_CHECKS_ENABLED = false;
|
||||
#endif
|
||||
|
||||
const URL_HOST = "http://localhost:4444/";
|
||||
const URL_PATH = "data";
|
||||
|
||||
|
|
|
@ -47,6 +47,10 @@ const TEST_FILES = [];
|
|||
const VERSION_DOWNGRADE_ERROR = "23";
|
||||
|
||||
function run_test() {
|
||||
if (!IS_MAR_CHECKS_ENABLED) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Setup an old version MAR file
|
||||
do_register_cleanup(cleanupUpdaterTest);
|
||||
setupUpdaterTest(MAR_OLD_VERSION_FILE);
|
||||
|
|
|
@ -47,6 +47,10 @@ const TEST_FILES = [];
|
|||
const MAR_CHANNEL_MISMATCH_ERROR = "22";
|
||||
|
||||
function run_test() {
|
||||
if (!IS_MAR_CHECKS_ENABLED) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Setup a wrong channel MAR file
|
||||
do_register_cleanup(cleanupUpdaterTest);
|
||||
setupUpdaterTest(MAR_WRONG_CHANNEL_FILE);
|
||||
|
|
Загрузка…
Ссылка в новой задаче