Skip to content

Commit

Permalink
Run tests with Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
piranna committed May 23, 2017
1 parent d29ed3c commit 743e53c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/test
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ switch(platform)
command = 'docker'
argv =
[
'run', '-t',
// TODO find a way to correctly set `stdio` as a TTY. Maybe with `pty.js`?
'run', '-i',
'--cap-add', 'SYS_ADMIN',
'--security-opt=apparmor:unconfined',
'--device', '/dev/fuse',
Expand Down Expand Up @@ -131,7 +132,7 @@ exe
.when('~ > ')

if(platform !== 'docker')
exe.respond('node"\n')
exe.respond('node\n')
.when('> ', 'setTimeout(console.log, 2000, "this is","a test")\n')
.when(/this is a test/)

Expand Down

0 comments on commit 743e53c

Please sign in to comment.