Skip to content

Commit

Permalink
Trying all CLI integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Kliment committed Dec 29, 2015
1 parent 78c846f commit b637db3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions test/fixtures/scripts/endless-sigterm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
function term() {
echo 'Caught SIGNTERM, exiting.'
exit 0
}

trap 'term' SIGTERM

while true
do
sleep 0.1
done
4 changes: 2 additions & 2 deletions test/integration/cli-test.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ execCommand = (cmd, options = {}, callback) ->
callback(undefined, stdout, stderr, exitStatus)


describe "Command line interface", () ->
describe.only "Command line interface", () ->

describe "When blueprint file not found", ->
before (done) ->
Expand Down Expand Up @@ -383,7 +383,7 @@ describe "Command line interface", () ->
it 'should return message annoucing the fact', () ->
assert.include stderr, 'killed'

it.only 'should term or kill the server', () ->
it 'should term or kill the server', () ->
console.log stdout
console.log stderr
assert.isFalse isProcessRunning("endless-nosigterm")
Expand Down

0 comments on commit b637db3

Please sign in to comment.