Sha256: 68e0524ec33535dcc758ba48309ba3eddfaadb406d23e60a064c8f990632b6b3
Contents?: true
Size: 1.02 KB
Versions: 3
Compression:
Stored size: 1.02 KB
Contents
Feature: -P (--pid_dir) option -P (--pid_dir) option specifies the location to put pid files Background: Given I set the environment variables to: | variable | value | | TREMA_LOG_DIR | . | | TREMA_SOCKET_DIR | . | And a file named "null_controller.rb" with: """ruby class NullController < Trema::Controller; end """ @sudo Scenario: -P option Given a directory named "pid" When I successfully run `trema run null_controller.rb -P pid -d` And sleep 3 Then a file named "pid/NullController.pid" should exist @sudo Scenario: --pid_dir option Given a directory named "pid" When I successfully run `trema run null_controller.rb --pid_dir pid -d` And sleep 3 Then a file named "pid/NullController.pid" should exist @sudo Scenario: "No such directory" error When I run `trema run null_controller.rb -P pid -d` Then the exit status should not be 0 And the stderr should contain: """ No such directory """
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
trema-0.10.1 | features/trema_run/pid_dir_option.feature |
trema-0.10.0 | features/trema_run/pid_dir_option.feature |
trema-0.9.0 | features/trema_run/pid_dir_option.feature |