Skip to content

Commit

Permalink
Merge pull request #2676 from magento-borg/MAGETWO-92468-make-tests-n…
Browse files Browse the repository at this point in the history
…amespace-agnostic-2.3-develop

[borg] MAGETWO-92468: Make PR testsuite namespace-agnostic
  • Loading branch information
pdohogne-magento authored Jun 9, 2018
2 parents 3ab560d + ca5df87 commit 33393e2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ lib/web/mage/adminhtml/varienLoader.js
lib/web/magnifier/magnifier.js
lib/web/magnifier/magnify.js
lib/web/varien/js.js

// MINIFIED FILES
app/code/**/*.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
'/\.(jpe?g|png|gif|ttf|swf|eot|woff|pdf|mp3|pdf|jar|jbf|php\.dist)$/',
'/pub\/opt\/magento\/var/',
'/COPYING\.txt/',
'/setup\/src\/Zend\/Mvc\/Controller\/LazyControllerAbstractFactory\.php/'
'/setup\/src\/Zend\/Mvc\/Controller\/LazyControllerAbstractFactory\.php/',
'/app\/code\/(?!Magento)[^\/]*/'
];
13 changes: 7 additions & 6 deletions dev/tools/grunt/tools/collect-validation-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
* See COPYING.txt for license details.
*/

/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
'use strict';

var glob = require('glob'),
Expand All @@ -29,8 +25,8 @@ module.exports = {
getFilesForValidate: function () {
var blackListFiles = glob.sync(pc.static.blacklist + '*.txt'),
whiteListFiles = glob.sync(pc.static.whitelist + '*.txt'),
blackList = this.readFiles(blackListFiles),
whiteList = this.readFiles(whiteListFiles),
blackList = this.readFiles(blackListFiles).filter(this.isListEntryValid),
whiteList = this.readFiles(whiteListFiles).filter(this.isListEntryValid),
files = [],
entireBlackList = [];

Expand All @@ -45,6 +41,11 @@ module.exports = {
return files;
},

isListEntryValid: function(line) {
line = line.trim();
return line.length > 0 && line.startsWith('// ') !== true;
},

getFiles: function (file) {
if (file) {
return file.split(',');
Expand Down

0 comments on commit 33393e2

Please sign in to comment.