fix(diff): bugs in auto detect cases #14

Merged
张泊明518370910136 merged 11 commits from fix/diff into master 2025-05-22 01:34:02 +08:00
9 changed files with 40 additions and 15 deletions
Showing only changes of commit 2c3944ea3f - Show all commits

View File

@ -44,7 +44,7 @@ InputFile = Union[LocalFile, MemoryFile, PreparedFile, Symlink]
class Cmd(BaseModel):
args: List[str] = []
env: List[str] = []
env: List[str] = ["PATH=/usr/bin:/bin:/usr/local/bin"]
stdin: Union[InputFile, StreamIn] = MemoryFile(content="")
stdout: Union[Collector, StreamOut] = Collector(name="stdout")
stderr: Union[Collector, StreamOut] = Collector(name="stderr")

View File

@ -222,7 +222,6 @@ def fix_diff(
]
)
parser_cases.append(parser_case)
for case in default_cases:
cmd = result.OptionalCmd(
stdin=result.LocalFile(src=str(base_dir / f"{case}.in"))

View File

@ -18,7 +18,9 @@
"with": {
"default": {
"args": [],
"env": [],
"env": [
"PATH=/usr/bin:/bin:/usr/local/bin"
],
"stdin": {
"content": ""
},
@ -108,7 +110,9 @@
"args": [
"./tools/compile"
],
"env": [],
"env": [
"PATH=/usr/bin:/bin:/usr/local/bin"
],
"stdin": {
"content": ""
},
@ -195,7 +199,9 @@
"*.cpp",
"*.h"
],
"env": [],
"env": [
"PATH=/usr/bin:/bin:/usr/local/bin"
],
"stdin": {
"content": ""
},
@ -295,7 +301,9 @@
"h7/build",
"h7/ex2.cpp"
],
"env": [],
"env": [
"PATH=/usr/bin:/bin:/usr/local/bin"
],
"stdin": {
"content": ""
},
@ -421,7 +429,9 @@
"--quiet",
"h7/ex2.cpp"
],
"env": [],
"env": [
"PATH=/usr/bin:/bin:/usr/local/bin"
],
"stdin": {
"content": ""
},
@ -566,7 +576,9 @@
"--exclude=build",
"h7/ex2.cpp"
],
"env": [],
"env": [
"PATH=/usr/bin:/bin:/usr/local/bin"
],
"stdin": {
"content": ""
},
@ -663,7 +675,9 @@
"./h7/build/ex2-asan",
"-a"
],
"env": [],
"env": [
"PATH=/usr/bin:/bin:/usr/local/bin"
],
"stdin": {
"content": ""
},

View File

@ -26,7 +26,9 @@
"h7/build",
"h7/ex2.cpp"
],
"env": [],
"env": [
"PATH=/usr/bin:/bin:/usr/local/bin"
],
"stdin": {
"content": ""
},

View File

@ -26,7 +26,9 @@
"--quiet",
"h7/ex2.cpp"
],
"env": [],
"env": [
"PATH=/usr/bin:/bin:/usr/local/bin"
],
"stdin": {
"content": ""
},

View File

@ -25,7 +25,9 @@
"--exclude=build",
"h7/ex2.cpp"
],
"env": [],
"env": [
"PATH=/usr/bin:/bin:/usr/local/bin"
],
"stdin": {
"content": ""
},

View File

@ -21,7 +21,9 @@
"./h7/build/ex2-asan",
"-a"
],
"env": [],
"env": [
"PATH=/usr/bin:/bin:/usr/local/bin"
],
"stdin": {
"content": ""
},

View File

@ -24,7 +24,9 @@
"*.cpp",
"*.h"
],
"env": [],
"env": [
"PATH=/usr/bin:/bin:/usr/local/bin"
],
"stdin": {
"content": ""
},

View File

@ -24,7 +24,9 @@
"*.cpp",
"*.h"
],
"env": [],
"env": [
"PATH=/usr/bin:/bin:/usr/local/bin"
],
"stdin": {
"content": ""
},