mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
migrate-hustoj: sync testdata
This commit is contained in:
1 parent
79d5d09ad0
commit
86379f4ace
2 files changed
+2
-1
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/migrate-hustoj",
|
||||
"version": "0.1.0",
|
||||
"version": "0.1.1",
|
||||
"main": "package.json",
|
||||
"repository": "git@github.com:hydro-dev/Hydro.git",
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
|
||||
@@ -269,6 +269,7 @@ export async function run({
|
||||
for (const file of files) {
|
||||
if (!file.isDirectory()) continue;
|
||||
if (!pidMap[file.name]) continue;
|
||||
report({ message: `Syncing testdata for ${file.name}` });
|
||||
const datas = await fs.readdir(`${dataDir}/${file.name}`);
|
||||
for (const data of datas) {
|
||||
const filename = nameMap[data] || data;
|
||||
|
||||
Reference in new issue
Block a user