// If we're on Windows, don't bother doing this.
if (Functions.isWindows())
return;
// TODO: define a FakeLauncher implementation with easymock so that this kind of assertions can be simplified.
PretendSlave s = createPretendSlave(new FakeLauncher() {
public Proc onLaunch(ProcStarter p) throws IOException {
// test the command line argument.
List<String> cmds = p.cmds();
assertEquals("/bin/sh",cmds.get(0));
assertEquals("-xe",cmds.get(1));