Skip to content

Commit f787769

Browse files
committed
fixed issue with test ouput folders
1 parent 645da50 commit f787769

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

experiments/wb-exp.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,11 @@ def __init__(self, name, platform):
312312
TEST_DIR = BASE_DIR + "/tests"
313313
os.makedirs(TEST_DIR)
314314

315+
### NOTE: this function MUST be kept in sync between wb-exp.py and bb-exp.py
316+
def getTestDir(tool,sutname,port):
317+
return pathlib.PurePath(TESTS_DIR + "/"+ tool + "/" + sutname + "/" + str(port)).as_posix()
318+
319+
315320
ALL_LOGS = LOGS_DIR + "/logs"
316321
#We might end up generating gigas of log files. So, at each new experiments, we delete previous logs
317322
shutil.rmtree(ALL_LOGS, ignore_errors=True)
@@ -594,7 +599,7 @@ def addJobBody(port, sut, seed, setting, configName):
594599
params += " --statisticsColumnId=" + sut.name
595600
params += " --seed=" + str(seed)
596601
params += " --sutControllerPort=" + str(port)
597-
params += " --outputFolder=" + TEST_DIR + "/" + sut.name
602+
params += " --outputFolder=" + getTestDir(configName,sut.name,port)
598603
params += " --statisticsFile=" + REPORT_DIR + "/statistics" + identifier + ".csv"
599604
params += " --snapshotInterval=5"
600605
params += " --snapshotStatisticsFile=" + REPORT_DIR + "/snapshot" + identifier + ".csv"

0 commit comments

Comments
 (0)