public RunningResults RunContainerAndGetResultInternal(RunnerSubmission submission, DirectoryInfo submissionWorkingDirectory)
        {
            var commandRunnerSubmission = (CommandRunnerSubmission)submission;
            var settings = GetSpecificSettings(commandRunnerSubmission);
            var result   = DockerProcessRunner.Run((CommandRunnerSubmission)submission, settings, submissionWorkingDirectory.FullName);

            result.Id = submission.Id;
            return(result);
        }
示例#2
0
        public RunningResults RunContainerAndGetResultInternal(RunnerSubmission submission, DirectoryInfo submissionWorkingDirectory)
        {
            var commandRunnerSubmission = (CommandRunnerSubmission)submission;
            var settings = GetSpecificSettings(commandRunnerSubmission);
            var result   = DockerProcessRunner.Run((CommandRunnerSubmission)submission, settings, submissionWorkingDirectory.FullName);

            if (result.Verdict == Verdict.Ok)
            {
                result = ResultParser.Parse(result.Output, result.Error);
            }
            result.Id = submission.Id;
            return(result);
        }