mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core&ui: flatten testcases directory
This commit is contained in:
4 files changed
+21
-17
No files matched your search
@@ -76,7 +76,7 @@ class ProblemImportHydroHandler extends Handler {
|
||||
const sub = await fs.readdir(path.join(tmpdir, i, 'testdata', f.name));
|
||||
for (const s of sub) {
|
||||
const stream = fs.createReadStream(path.join(tmpdir, i, 'testdata', f.name, s));
|
||||
await problem.addTestdata(domainId, docId, `${f.name}/${s}`, stream);
|
||||
await problem.addTestdata(domainId, docId, s, stream);
|
||||
}
|
||||
} else if (f.isFile()) {
|
||||
const stream = fs.createReadStream(path.join(tmpdir, i, 'testdata', f.name));
|
||||
|
||||
Reference in new issue
Block a user