mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 02:05:37 +02:00
Fail when MD5 of test files fails on bots.
This commit is contained in:
parent
8a4be24645
commit
482ea2af32
2 changed files with 14 additions and 7 deletions
15
gulpfile.js
15
gulpfile.js
|
@ -356,7 +356,7 @@ function getTempFile(prefix, suffix) {
|
|||
return path;
|
||||
}
|
||||
|
||||
function createTestSource(testsName) {
|
||||
function createTestSource(testsName, bot) {
|
||||
var source = stream.Readable({ objectMode: true, });
|
||||
source._read = function () {
|
||||
console.log();
|
||||
|
@ -394,6 +394,9 @@ function createTestSource(testsName) {
|
|||
return null;
|
||||
}
|
||||
args.push('--browserManifestFile=' + PDF_BROWSERS);
|
||||
if (bot) {
|
||||
args.push('--strictVerify');
|
||||
}
|
||||
|
||||
var testProcess = spawn('node', args, { cwd: TEST_DIR, stdio: 'inherit', });
|
||||
testProcess.on('close', function (code) {
|
||||
|
@ -403,7 +406,7 @@ function createTestSource(testsName) {
|
|||
return source;
|
||||
}
|
||||
|
||||
function makeRef(done, noPrompts) {
|
||||
function makeRef(done, bot) {
|
||||
console.log();
|
||||
console.log('### Creating reference images');
|
||||
|
||||
|
@ -420,8 +423,8 @@ function makeRef(done, noPrompts) {
|
|||
}
|
||||
|
||||
var args = ['test.js', '--masterMode'];
|
||||
if (noPrompts) {
|
||||
args.push('--noPrompts');
|
||||
if (bot) {
|
||||
args.push('--noPrompts', '--strictVerify');
|
||||
}
|
||||
args.push('--browserManifestFile=' + PDF_BROWSERS);
|
||||
var testProcess = spawn('node', args, { cwd: TEST_DIR, stdio: 'inherit', });
|
||||
|
@ -980,8 +983,8 @@ gulp.task('test', ['testing-pre', 'generic', 'components'], function() {
|
|||
|
||||
gulp.task('bottest', ['testing-pre', 'generic', 'components'], function() {
|
||||
return streamqueue({ objectMode: true, },
|
||||
createTestSource('unit'), createTestSource('font'),
|
||||
createTestSource('browser (no reftest)'));
|
||||
createTestSource('unit', true), createTestSource('font', true),
|
||||
createTestSource('browser (no reftest)', true));
|
||||
});
|
||||
|
||||
gulp.task('browsertest', ['testing-pre', 'generic', 'components'], function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue