Page 1 of 1

phpunit command w/ guestcontrol produces invalid option err

Posted: 6. Feb 2013, 18:05
by polygone
What I'm trying to do:
Create custom batch file for phpunit on windows 7 host. Use this batch file to call vbox guest controls, which then calls phpunit on the guest debian system. Point netbeans at this batch file, so it uses the installation of phpunit on the VM.

So far, I have everything working well, except I am getting this error:

Code: Select all

Try `/sbin/start-stop-daemon --help' for more information./vagrant/tests/phpunit/sbin/start-stop-daemon: invalid option -- l
Try `/sbin/start-stop-daemon --help' for more information./sbin/start-stop-daemon: invalid option -- l
...when I run this command:

Code: Select all

c:\Users\mayerj\Desktop>"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" --nologo guestcontrol "myvmname" execute --image /usr/bin/php5 /usr/bin/phpunit MyCustomTestSuite /path/to/suite --u
sername "user" --password "pass" --wait-stdout
I think it's because of the way you pass in the class to phpunit, but I have no way of dealing with that. I was going to attempt to force stderr to /dev/null...like this:

Code: Select all

c:\Users\mayerj\Desktop>"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" --nologo guestcontrol "myvmname" execute --image /usr/bin/php5 /usr/bin/phpunit MyCustomTestSuite /path/to/suite --u
sername "user" --password "pass" --wait-stdout -- 2> "/dev/null"
...but I get this error:

Code: Select all

The system cannot find the path specified.
Does anyone have any idea how to either stop the invalid option error or at least suppress it?