test_commands does not work on IRIX It assumes the output of "ls /bin/ls" is a line that starts with a '-'. On IRIX that file is a symbolic link, so the first character is an l. This causes test_getstatus to fail.
allows using the tests with unittest.py as a script. The tests will still run when run as a script themselves.
This closes SF patch #440291.