✅ test(tests): avoid hardcoded missing path
This commit is contained in:
parent
07583c8283
commit
b529012c59
|
|
@ -214,7 +214,10 @@ teardown() {
|
|||
@test "错误处理 - 目标目录不存在时报错" {
|
||||
cd "$TARGET_DIR"
|
||||
|
||||
run sh "$SCRIPT_PATH" /nonexistent/path tsl
|
||||
missing_dir="$TEST_DIR/missing-project"
|
||||
rm -rf "$missing_dir"
|
||||
|
||||
run sh "$SCRIPT_PATH" "$missing_dir" tsl
|
||||
|
||||
[ "$status" -ne 0 ]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue