diff options
author | Ori Bernstein <ori@eigenstate.org> | 2018-03-24 23:13:34 -0700 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2018-03-24 23:13:51 -0700 |
commit | 56c70bd6049b8eb88c7b7ab3636d6c1761fa0008 (patch) | |
tree | 71b8bfbb4e39e52cde74285ac822febfaa3c5955 /mbld | |
parent | 34a0fe0d51a0bf0679d2d3b4c09140c8447dac2c (diff) | |
download | mc-56c70bd6049b8eb88c7b7ab3636d6c1761fa0008.tar.gz |
Handle subtests correctly.
Diffstat (limited to 'mbld')
-rw-r--r-- | mbld/test.myr | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mbld/test.myr b/mbld/test.myr index e199d20..cc9a304 100644 --- a/mbld/test.myr +++ b/mbld/test.myr @@ -78,6 +78,13 @@ const runtest = {b, n, targs, isbench, failed dir = std.pathcat(b.basedir, n.wdir) std.chdir(dir) std.slfree(dir) + + if targs.len > 0 + match std.strfind(targs[0], ":") + | `std.Some i: std.setenv("MTEST_SUBSET", targs[0][i+1:]) + | `std.None: /* ok */ + ;; + ;; match std.spork(n.cmd) | `std.Err m: std.fatal("\nunable to run test: {}\n", m) |