diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/virtualfb.sh | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/virtualfb.sh b/tests/virtualfb.sh index 252da98..c5c9668 100755 --- a/tests/virtualfb.sh +++ b/tests/virtualfb.sh @@ -24,15 +24,11 @@ start() fi VFB_DISPLAY=`echo | awk 'BEGIN{srand();} {printf ":%.0f", rand()*1000+100};'` - if [ $debug ]; then + if [ $debug ]; then echo debug VFB_DISPLAY $VFB_DISPLAY echo debug VFB_BINARY $VFB_BINARY fi - if [ $BASH ]; then - $VFB_BINARY $VFB_DISPLAY -screen 0 800x600x24 \&> ./virtualfb.log & - else - $VFB_BINARY $VFB_DISPLAY -screen 0 800x600x24 > ./virtualfb.log & - fi + $VFB_BINARY $VFB_DISPLAY -screen 0 800x600x24 > ./virtualfb1.log 2> ./virtualfb2.log & # on some systems $! gives us VFB_BINARY's PID, on others we have to subtract 1 VFB_PID_MINUS0=$! VFB_PID_MINUS1=$(($VFB_PID_MINUS0 - 1)) |