bwsw commented on issue #3838: CS 4.11.2+ SSVM bug when scanning templates
URL: https://github.com/apache/cloudstack/issues/3838#issuecomment-579060783
 
 
   @weizhouapache 
   
   I cannot reproduce locally on my notebook. Looks like the problem even more 
complex:
   
   ```
       @Test
       public void testDelayedOutput() throws FileNotFoundException {
           Assume.assumeTrue(SystemUtils.IS_OS_LINUX);
           String dir = "/tmp";
           String file = "script-test.sh";
           File f = new File(dir, file);
           PrintWriter pw = new PrintWriter(f);
           pw.println(
                   "sleep 60\n" +
                   "echo 'test'");
           pw.close();
           Script script = new Script("/bin/bash");
           script.add(f.toString());
           String result = script.execute();
           Assert.assertEquals("test", result);
           f.delete();
       }
   ```
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to