mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-06 11:24:00 +00:00
Run the scenarios from the served clean checkout
This commit is contained in:
1 parent
f7945d6844
commit
00dfed7959
1 file changed
+5
-1
@@ -417,6 +417,7 @@ const report = {
|
|||||||
servedByRunner: true,
|
servedByRunner: true,
|
||||||
appCommit: served.commit,
|
appCommit: served.commit,
|
||||||
appCheckoutClean: true,
|
appCheckoutClean: true,
|
||||||
|
scenariosFrom: 'the same clean checkout',
|
||||||
envFilesInCheckout: served.envFilesInCheckout,
|
envFilesInCheckout: served.envFilesInCheckout,
|
||||||
blankedEnv: served.blankedEnv,
|
blankedEnv: served.blankedEnv,
|
||||||
otherKeyLikeVariablesBlanked: served.otherKeyLikeVariablesBlanked,
|
otherKeyLikeVariablesBlanked: served.otherKeyLikeVariablesBlanked,
|
||||||
@@ -476,7 +477,10 @@ for (const [label, name, layers, extra = [], seconds = 300, external] of runs) {
|
|||||||
if (external) args.splice(0, 1, base.origin + '/');
|
if (external) args.splice(0, 1, base.origin + '/');
|
||||||
else args.push(`--layers=${layers.join(',')}`, `--evidence=${evidence}`);
|
else args.push(`--layers=${layers.join(',')}`, `--evidence=${evidence}`);
|
||||||
const start = Date.now();
|
const start = Date.now();
|
||||||
const run = spawnSync(process.execPath, [join(root, script), ...args], {
|
// With --serve the scenarios run from the same clean checkout the app was
|
||||||
|
// built from, so other work in this tree cannot change them.
|
||||||
|
const scripts = served?.worktree ?? root;
|
||||||
|
const run = spawnSync(process.execPath, [join(scripts, script), ...args], {
|
||||||
encoding: 'utf8',
|
encoding: 'utf8',
|
||||||
timeout: seconds * 1000,
|
timeout: seconds * 1000,
|
||||||
maxBuffer: 1 << 26,
|
maxBuffer: 1 << 26,
|
||||||
|
|||||||
Reference in new issue
Block a user