Prevent displaying of bash errors in output

This commit is contained in:
Sebastian Serth
2020-11-23 23:34:06 +01:00
parent daeda6f610
commit 839e6e0936

View File

@ -253,7 +253,7 @@ class SubmissionsController < ApplicationController
# If no test command is set, use the run_command for the RegEx below. Otherwise, no output will be displayed!
test_command = run_command
end
unless /root|workspace|#{run_command}|#{test_command}/.match(message)
unless /root|workspace|#{run_command}|#{test_command}|bash: cmd:canvasevent: command not found/.match(message)
parse_message(message, 'stdout', tubesock, container)
end
end