Sha256: 2a2ac3d025046c55a77641c6a74bdab4f24c89c5acebb24e9a90698a84827389
Contents?: true
Size: 1.47 KB
Versions: 3
Compression:
Stored size: 1.47 KB
Contents
Feature: -S (--socket_dir) option -S (--socket_dir) option specifies the location to find socket files Background: Given I set the environment variables to: | variable | value | | TREMA_LOG_DIR | . | | TREMA_PID_DIR | . | | TREMA_SOCKET_DIR | . | @sudo Scenario: -S option Given a file named "null_controller.rb" with: """ruby class NullController < Trema::Controller; end """ And I successfully run `trema run null_controller.rb -d` When I successfully run `trema killall NullController -S .` And the file "NullController.pid" should not exist @sudo Scenario: --socket_dir option Given a file named "null_controller.rb" with: """ruby class NullController < Trema::Controller; end """ And I successfully run `trema run null_controller.rb -d` When I successfully run `trema killall NullController --socket_dir .` And the file "NullController.pid" should not exist @sudo Scenario: "Controller process does not exist" error Given a file named "null_controller.rb" with: """ruby class NullController < Trema::Controller; end """ And I successfully run `trema run null_controller.rb -d` When I run `trema killall NullController -S /tmp` Then the exit status should not be 0 And the output should contain: """ Controller process "NullController" does not exist. """ And the file "NullController.pid" should exist
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
trema-0.10.1 | features/trema_killall/socket_dir_option.feature |
trema-0.10.0 | features/trema_killall/socket_dir_option.feature |
trema-0.9.0 | features/trema_killall/socket_dir_option.feature |