Add option to add multiple entry points which could be executed similar to the Main File

This commit is contained in:
Sebastian Serth
2020-01-16 11:14:59 +01:00
parent 6d16dfe14d
commit b51be3edb3
4 changed files with 4 additions and 2 deletions

View File

@ -389,7 +389,7 @@ configureEditors: function () {
},
isActiveFileRunnable: function () {
return this.isActiveFileExecutable() && ['main_file', 'user_defined_file'].includes(this.active_frame.data('role'));
return this.isActiveFileExecutable() && ['main_file', 'user_defined_file', 'executable_file'].includes(this.active_frame.data('role'));
},
isActiveFileStoppable: function () {

View File

@ -19,7 +19,7 @@ module CodeOcean
include DefaultValues
DEFAULT_WEIGHT = 1.0
ROLES = %w(main_file reference_implementation regular_file teacher_defined_test user_defined_file user_defined_test)
ROLES = %w(main_file reference_implementation regular_file executable_file teacher_defined_test user_defined_file user_defined_test)
TEACHER_DEFINED_ROLES = ROLES - %w(user_defined_file)
after_initialize :set_default_values