bugfix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2025-12-26 16:49:24 +03:00
parent 058db76618
commit 31eb2f4b19
2 changed files with 11 additions and 6 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "ig-test", "name": "ig-test",
"version": "1.6.1", "version": "1.6.2",
"description": "experimental test runner....", "description": "experimental test runner....",
"main": "test.js", "main": "test.js",
"bin": { "bin": {

View File

@ -679,11 +679,16 @@ async function(spec, chain, stats, mod_chain_length=1){
.filter(function(s){ .filter(function(s){
return typeof(setups[s]) == 'function' return typeof(setups[s]) == 'function'
&& (setup == '*' || setup == s) }) && (setup == '*' || setup == s) })
// XXX this breaks if mod_queue is empty...
var queue = var queue =
chain_length != 1 ? chain_length != 1 ?
test_queue test_queue
.map(function(t){ .map(function(t){
return mod_queue return mod_queue.length == 0 ?
setup_queue
.map(function(s){
return [[s, [], t]] })
: mod_queue
.map(function(m){ .map(function(m){
return setup_queue return setup_queue
.map(function(s){ .map(function(s){