Skip to content

Commit

Permalink
Added script to run watir tests via xvfb
Browse files Browse the repository at this point in the history
  • Loading branch information
ngiger committed Dec 8, 2015
1 parent 71a06ec commit 39001d2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions xvfb_rspec.sh
@@ -0,0 +1,9 @@
#!/bin/bash
spec_file=(${1//:/ })
log_file=xvfb_`basename -s .rb $spec_file`.log
Xvfb :1 -screen 5 1280x1024x24 -nolisten tcp 2>/dev/null
export DISPLAY=:1.5
bundle exec rspec $1 2>&1 | tee $log_file
status=$?
echo "Result ist $status for $1"
killall Xvfb 2> /dev/null

0 comments on commit 39001d2

Please sign in to comment.