Log planner exit code
This adds a log entry containing the exit code to the output as well as the environment description file. This makes it easier to check for errors.
This commit is contained in:
parent
4239e36a3d
commit
ae7a4306a0
@ -208,6 +208,7 @@ def runJob(configuration, instance, config):
|
||||
print("# instance: " + str(instance), file = errorFile)
|
||||
print("# command: " + str(command), file = errorFile)
|
||||
print("# working directory: " + plannerDir, file = errorFile)
|
||||
print("# exit code: " + str(exitCode), file = errorFile)
|
||||
print(stderr, file = errorFile)
|
||||
|
||||
if exitCode != 0:
|
||||
@ -225,7 +226,8 @@ def runJob(configuration, instance, config):
|
||||
"plasp": plaspVersion(config),
|
||||
"planner": plannerVersion(config),
|
||||
"fastDownward": fastDownwardVersion(config)
|
||||
}
|
||||
},
|
||||
"exitCode": exitCode,
|
||||
}
|
||||
|
||||
print(yaml.dump(environment, default_flow_style = False), file = environmentFile)
|
||||
|
Loading…
Reference in New Issue
Block a user