Skip to content

Commit

Permalink
Typo and better handling of args construction
Browse files Browse the repository at this point in the history
  • Loading branch information
Neloop authored and Martin Kruliš committed Mar 18, 2019
1 parent e62b648 commit b0cfcde
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static function init() {
}

/**
* JudgeNormalBox constructor.
* Constructor.
* @param BoxMeta $meta
*/
public function __construct(BoxMeta $meta) {
Expand Down Expand Up @@ -110,14 +110,16 @@ public function compile(CompilationParams $params): array {
$args = array_merge($args,
$this->getInputPortValue(self::$ARGS_PORT_KEY)->getValue());
}

array_push($args,
"-o",
$this->getOutputPortValue(self::$BINARY_FILE_PORT_KEY)->getValue(ConfigParams::$EVAL_DIR),
"-c"
);

$task->setCommandArguments(
array_merge(
$args,
[
"-o",
$this->getOutputPortValue(self::$BINARY_FILE_PORT_KEY)->getValue(ConfigParams::$EVAL_DIR),
"-c"
],
$this->getInputPortValue(self::$SOURCE_FILES_PORT_KEY)->getValue(ConfigParams::$EVAL_DIR),
$this->getInputPortValue(self::$EXTRA_FILES_PORT_KEY)->getValue(ConfigParams::$EVAL_DIR),
[ $this->getInputPortValue(self::$RUNNER_FILE_PORT_KEY)->getValue(ConfigParams::$EVAL_DIR) ]
Expand Down

0 comments on commit b0cfcde

Please sign in to comment.