I need to unit test some bash scripts, I have setup a debian squeeze in a chroot. From command line I can use chroot /directory my-command, ou schroot -d / -u root my-command, but I need to run theses commands from a PHPUnit test, runned by Apache (user www-data). With schroot I have this error
E: No controlling terminal E: Authentication failed: Authentication failure
with sudo chroot I have
sudo: no tty present and no askpass program specified
Better idea than me?