Skip to content
Snippets Groups Projects
Commit 43d8951e authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Add support for a skipif file in each directory.

If this file contains valid JS code that returns a true value, the
directory is skipped.
parent 7f4673b8
No related branches found
No related tags found
No related merge requests found
......@@ -16,13 +16,22 @@ function depth_first(root, parent)
{
var entries;
if (file_exists(root+'skipif')) {
try {
if (load(root+'skipif')) {
stdout.writeln("Skipping "+root);
return;
}
}
catch(e) {}
}
parent[root] = {tests:[]};
entries = directory(root+'*');
entries.forEach(function(entry) {
var last_ch;
if (entry === './' || entry === '../')
if (entry === './' || entry === '../' || entry === 'skipif')
return;
if (entry.length < 1)
return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment