gen change
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user