mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00:00
test(perf): avoid real python startup in ios team-id integration case
This commit is contained in:
@@ -117,12 +117,6 @@ exit 1`,
|
|||||||
const profilesDir = path.join(homeDir, "Library", "MobileDevice", "Provisioning Profiles");
|
const profilesDir = path.join(homeDir, "Library", "MobileDevice", "Provisioning Profiles");
|
||||||
await mkdir(profilesDir, { recursive: true });
|
await mkdir(profilesDir, { recursive: true });
|
||||||
await writeFile(path.join(profilesDir, "one.mobileprovision"), "stub1");
|
await writeFile(path.join(profilesDir, "one.mobileprovision"), "stub1");
|
||||||
|
|
||||||
const fallbackResult = runScript(homeDir);
|
|
||||||
expect(fallbackResult.ok).toBe(true);
|
|
||||||
expect(fallbackResult.stdout).toBe("AAAAA11111");
|
|
||||||
|
|
||||||
await writeFile(path.join(profilesDir, "two.mobileprovision"), "stub2");
|
|
||||||
await writeExecutable(
|
await writeExecutable(
|
||||||
path.join(binDir, "fake-python"),
|
path.join(binDir, "fake-python"),
|
||||||
`#!/usr/bin/env bash
|
`#!/usr/bin/env bash
|
||||||
@@ -130,6 +124,12 @@ printf 'AAAAA11111\\t0\\tAlpha Team\\r\\n'
|
|||||||
printf 'BBBBB22222\\t0\\tBeta Team\\r\\n'`,
|
printf 'BBBBB22222\\t0\\tBeta Team\\r\\n'`,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const fallbackResult = runScript(homeDir, {
|
||||||
|
IOS_PYTHON_BIN: path.join(binDir, "fake-python"),
|
||||||
|
});
|
||||||
|
expect(fallbackResult.ok).toBe(true);
|
||||||
|
expect(fallbackResult.stdout).toBe("AAAAA11111");
|
||||||
|
|
||||||
const crlfResult = runScript(homeDir, {
|
const crlfResult = runScript(homeDir, {
|
||||||
IOS_PYTHON_BIN: path.join(binDir, "fake-python"),
|
IOS_PYTHON_BIN: path.join(binDir, "fake-python"),
|
||||||
IOS_PREFERRED_TEAM_ID: "BBBBB22222",
|
IOS_PREFERRED_TEAM_ID: "BBBBB22222",
|
||||||
|
|||||||
Reference in New Issue
Block a user