mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00:00
test(perf): skip shell profile loading in ios team-id script tests
This commit is contained in:
@@ -7,6 +7,7 @@ import { afterAll, beforeAll, describe, expect, it } from "vitest";
|
|||||||
|
|
||||||
const SCRIPT = path.join(process.cwd(), "scripts", "ios-team-id.sh");
|
const SCRIPT = path.join(process.cwd(), "scripts", "ios-team-id.sh");
|
||||||
const BASH_BIN = process.platform === "win32" ? "bash" : "/bin/bash";
|
const BASH_BIN = process.platform === "win32" ? "bash" : "/bin/bash";
|
||||||
|
const BASH_ARGS = process.platform === "win32" ? [SCRIPT] : ["--noprofile", "--norc", SCRIPT];
|
||||||
const BASE_PATH = process.env.PATH ?? "/usr/bin:/bin";
|
const BASE_PATH = process.env.PATH ?? "/usr/bin:/bin";
|
||||||
const BASE_LANG = process.env.LANG ?? "C";
|
const BASE_LANG = process.env.LANG ?? "C";
|
||||||
let fixtureRoot = "";
|
let fixtureRoot = "";
|
||||||
@@ -34,7 +35,7 @@ function runScript(
|
|||||||
...extraEnv,
|
...extraEnv,
|
||||||
};
|
};
|
||||||
try {
|
try {
|
||||||
const stdout = execFileSync(BASH_BIN, [SCRIPT], {
|
const stdout = execFileSync(BASH_BIN, BASH_ARGS, {
|
||||||
env,
|
env,
|
||||||
encoding: "utf8",
|
encoding: "utf8",
|
||||||
stdio: ["ignore", "pipe", "pipe"],
|
stdio: ["ignore", "pipe", "pipe"],
|
||||||
|
|||||||
Reference in New Issue
Block a user