gen change

This commit is contained in:
alex
2023-09-06 16:07:28 +02:00
parent 2b2a7f394e
commit 44b687660a
2 changed files with 6 additions and 7 deletions

View File

@@ -3,11 +3,10 @@ import os
import subprocess
from uuid import uuid4
from definitions import INST_STO_ROOT, SAMPLES, TEST_FILES
from loguru import logger as log
from tqdm import tqdm
from definitions import INST_STO_ROOT, SAMPLES, TEST_FILES
if __name__ == "__main__":
for path, data in SAMPLES.items():
log.info(f"processing {path}")
@@ -18,7 +17,7 @@ if __name__ == "__main__":
"dd",
"if=/dev/urandom",
f"of={INST_STO_ROOT+path}/{x}",
f"bs={int(data['size']*1000)}",
f"bs={int(data['size']*1024)}",
"count=1",
],
capture_output=True,
@@ -34,7 +33,7 @@ if __name__ == "__main__":
"dd",
"if=/dev/urandom",
f"of={INST_STO_ROOT}Rand/{uuid4()}",
f"bs={int(data['size']*1000)}",
f"bs={int(data['size']*1024)}",
"count=1",
],
capture_output=True,
@@ -50,7 +49,7 @@ if __name__ == "__main__":
"dd",
"if=/dev/urandom",
f"of={INST_STO_ROOT}test/{uuid4()}",
f"bs={int(data['size']*1000)}",
f"bs={int(data['size']*1024)}",
"count=1",
],
capture_output=True,