}
@Test
public void testRunScriptMultiLineWithComments() throws Exception
{
DirectoryResource temp = (DirectoryResource) resourceFactory.create(OperatingSystemUtils.createTempDir());
temp.deleteOnExit();
shellTest.getShell().setCurrentResource(temp);
FileResource<?> script = (FileResource<?>) temp.getChild("script.fsh");
script.setContents("\ntouch foo.txt\n\n\n\t\n"
+ "#touch foo2.txt\r\n");
Resource<?> child = temp.getChild("foo.txt");
Resource<?> child2 = temp.getChild("foo2.txt");
Assert.assertFalse(child.exists());
Assert.assertFalse(child2.exists());
Result result = shellTest.execute("run script.fsh", COMMAND_TIMEOUT, TimeUnit.SECONDS);
Assert.assertFalse(result instanceof Failed);