Sha256: 557bf0134115443a22567bb8d2307b91cb0acf7f3b80836b9919c332fdd9bbbe

Contents?: true

Size: 1.27 KB

Versions: 8

Compression:

Stored size: 1.27 KB

Contents

Feature: -S (--socket_dir) option

  -S (--socket_dir) option specifies the location to find socket files

  @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

8 entries across 8 versions & 1 rubygems

Version Path
trema-0.8.4 features/trema_killall/socket_dir_option.feature
trema-0.8.3 features/trema_killall/socket_dir_option.feature
trema-0.8.2 features/trema_killall/socket_dir_option.feature
trema-0.8.1 features/trema_killall/socket_dir_option.feature
trema-0.8.0 features/trema_killall/socket_dir_option.feature
trema-0.7.1 features/trema_killall/socket_dir_option.feature
trema-0.7.0 features/trema_killall/socket_dir_option.feature
trema-0.6.0 features/trema_killall/socket_dir_option.feature