test(cli): retain default service template coverage (#1873)
This commit was merged in pull request #1928.
This commit is contained in:
1 parent
0b52249cc3
commit
afe131444c
1 file changed
+5
-4
@@ -114,9 +114,7 @@ function unit(h, { profile = "library", node = USR_NODE, copy = COPY_A, extra =
|
|||||||
const r = spawnSync(unitScript, args, {
|
const r = spawnSync(unitScript, args, {
|
||||||
encoding: "utf8",
|
encoding: "utf8",
|
||||||
timeout: 30000,
|
timeout: 30000,
|
||||||
env: { HOME: process.env.HOME, TMPDIR: process.env.TMPDIR, LANG: process.env.LANG, PATH: `${h.bin}:${process.env.PATH}`, CASE2_UNIT_DIR: h.units, CASE2_SYSTEMCTL: join(h.bin, "systemctl"), CASE2_GETENT: join(h.bin, "getent"),
|
env: { HOME: process.env.HOME, TMPDIR: process.env.TMPDIR, LANG: process.env.LANG, PATH: `${h.bin}:${process.env.PATH}`, CASE2_UNIT_DIR: h.units, CASE2_SYSTEMCTL: join(h.bin, "systemctl"), CASE2_GETENT: join(h.bin, "getent"), ...env },
|
||||||
CASE2_BUS_TEMPLATE: BUS_TEMPLATE, CASE2_WEBUI_TEMPLATE: WEBUI_TEMPLATE,
|
|
||||||
CASE2_PROXY_TEMPLATE: join(REPO,"packages/cli/systemd/mosaic-proxy.service.in"), ...env },
|
|
||||||
});
|
});
|
||||||
return { code: r.status, out: r.stdout, err: r.stderr };
|
return { code: r.status, out: r.stdout, err: r.stderr };
|
||||||
}
|
}
|
||||||
@@ -210,7 +208,10 @@ for(const kind of ['sleep','signals','member']) test(`row253 C4 ${kind} query ha
|
|||||||
assert.equal(source.split(call).length,2,'tester query budget anchor is unique');
|
assert.equal(source.split(call).length,2,'tester query budget anchor is unique');
|
||||||
script(observed,instrumentInnerTimer(source.replace(call,call.replace(' 5 7 ',' 5 15 ')),clock));
|
script(observed,instrumentInnerTimer(source.replace(call,call.replace(' 5 7 ',' 5 15 ')),clock));
|
||||||
const capture=cleanupFixture(t,files);const stopGuard=fixtureGuard(t,files,9500,clock);
|
const capture=cleanupFixture(t,files);const stopGuard=fixtureGuard(t,files,9500,clock);
|
||||||
const start=performance.now(),r=unit(h,{profile:'factory',script:observed}),wall=(performance.now()-start)/1000;capture();
|
const start=performance.now(),r=unit(h,{profile:'factory',script:observed,env:{
|
||||||
|
CASE2_BUS_TEMPLATE:BUS_TEMPLATE,CASE2_WEBUI_TEMPLATE:WEBUI_TEMPLATE,
|
||||||
|
CASE2_PROXY_TEMPLATE:join(REPO,'packages/cli/systemd/mosaic-proxy.service.in'),
|
||||||
|
}}),wall=(performance.now()-start)/1000;capture();
|
||||||
refuses(r,/^case2-unit: tester config query inner-timeout\n$/);
|
refuses(r,/^case2-unit: tester config query inner-timeout\n$/);
|
||||||
const seconds=readProbeSeconds(read(clock));
|
const seconds=readProbeSeconds(read(clock));
|
||||||
const [queryPid,querySid]=read(queries).trim().split('\n')[0].trim().split(/\s+/).map(Number);
|
const [queryPid,querySid]=read(queries).trim().split('\n')[0].trim().split(/\s+/).map(Number);
|
||||||
|
|||||||
Reference in new issue
Block a user