Top Level Namespace
Defined Under Namespace
Modules: Enumerable, Kernel, Minitest, RbReadline, Robot, Roby, Syskit, Ui Classes: Class, Cube, Cylinder, Exception, FalseClass, IO, Module, NilClass, Object, Proc, Set, ShellEvalContext, SynchronizedReadlineInput, Thread
Constant Summary collapse
- State =
The main state object
Roby.state
- Conf =
The main configuration object
Roby.conf
- WAIT_SHELL_CONNECTION_WARNING_PERIOD =
5- Infinity =
rubocop:disable Naming/ConstantName
1.0 / 0
Instance Method Summary collapse
- #discover_test_files(all:, only_self:, base_dir:) ⇒ Object
- #display_notifications(interface) ⇒ Object
Instance Method Details
#discover_test_files(all:, only_self:, base_dir:) ⇒ Object
115 116 117 118 119 120 121 122 |
# File 'lib/roby/app/scripts/test.rb', line 115 def discover_test_files(all:, only_self:, base_dir:) self_files, dependent_files = \ Roby.app.discover_test_files( all: all, only_self: only_self, base_dir: base_dir ).map(&:first).partition { |f| Roby.app.self_file?(f) } self_files.sort + dependent_files.sort end |
#display_notifications(interface) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/roby/app/scripts/restart.rb', line 6 def display_notifications(interface) until interface.closed? interface.poll while interface.has_notifications? _, (source, level, ) = interface.pop_notification Robot.send(level.downcase, ) end while interface.has_job_progress? _, (kind, job_id, job_name) = interface.pop_job_progress Robot.info "[#{job_id}] #{job_name}: #{kind}" end sleep 0.01 end end |