Skip to content

Commit fa117bb

Browse files
committed
add exec test
1 parent 684e9a3 commit fa117bb

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/test/cli.exec.base.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,18 @@ export function describeTests2({ text, options }: BuildKitOption) {
406406

407407
await shellExec(`docker rm -f ${response.containerId}`);
408408
});
409+
410+
describe(`with valid (Dockerfile) multi-platform build config containing features [${text}]`, () => {
411+
let containerId: string | null = null;
412+
const testFolder = `${__dirname}/configs/dockerfile-with-automatic-platform-args`;
413+
beforeEach(async () => containerId = (await devContainerUp(cli, testFolder, options)).containerId);
414+
afterEach(async () => await devContainerDown({ containerId }));
415+
it('should have access to installed features (hello)', async () => {
416+
const res = await shellExec(`${cli} exec --workspace-folder ${testFolder} hello`);
417+
assert.strictEqual(res.error, null);
418+
assert.match(res.stdout, /howdy, node/);
419+
});
420+
});
409421
});
410422
});
411423
}

0 commit comments

Comments
 (0)