From 7ea0272eb4be94f64bb6505f08c60aacafb66353 Mon Sep 17 00:00:00 2001 From: "sganyunchi@163.com" <78394473+gi-b716@users.noreply.github.com> Date: Sun, 17 Nov 2024 09:18:11 +0800 Subject: [PATCH] Hot fix --- dataGenerator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dataGenerator.py b/dataGenerator.py index 3c8c62e..77e7dc1 100644 --- a/dataGenerator.py +++ b/dataGenerator.py @@ -188,7 +188,7 @@ def runHacking(self, id): elif self.config.checkerFile != "": runCheckerCommand = self.config.runningCheckerCommands.replace("$(cname)",self.config.checkerFile).replace("$(i)",freInputFileName).replace("$(a)",ansFileName).replace("$(o)",freOutputFileName) result = os.system("{0}".format(runCheckerCommand)) - if result == 0: + if result != 1: os.system("copy .\\{0} .\\wrongOutput".format(freOutputFileName)) os.system("rename .\\wrongOutput\\{0} {1}{2}.{3}".format(freOutputFileName,self.config.wrongOutputFileName[0],id,self.config.wrongOutputFileName[1]))