migrate-hustoj: sync testdata

This commit is contained in:
undefined committed 2021-11-15 13:21:53 +08:00
1 parent 79d5d09ad0
commit 86379f4ace
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -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>",
+1
View File
@@ -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;