Uploaded image for project: 'JBeret'
  1. JBeret
  2. JBERET-550

OsCommanBatchletTest.simpleCommands failed on Linux Debian

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • None
    • None
    • jberet-support
    • None

    Description

      Hi

      Test don't pass with this failure

      org.junit.ComparisonFailure: expected:<[0]> but was:<[FAILED]>
          at org.junit.Assert.assertEquals(Assert.java:117)
          at org.junit.Assert.assertEquals(Assert.java:146)
          at org.jberet.support.io.OsCommandBatchletTest.checkJobExecution(OsCommandBatchletTest.java:184)
          at org.jberet.support.io.OsCommandBatchletTest.runCommand(OsCommandBatchletTest.java:160)
          at org.jberet.support.io.OsCommandBatchletTest.simpleCommands(OsCommandBatchletTest.java:86)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:498)
          at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
          at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
          at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
          at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
          at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
          at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
          at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
          at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
          at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
          at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
          at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
          at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
          at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
          at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
          at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
          at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
          at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:93)
          at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:40)
          at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:529)
          at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:756)
          at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:452)
          at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:210) 

      I obtain this error on log :

      WARN: JBERET000001: Failed to run batchlet org.jberet.job.model.RefArtifact@6638c240
      java.io.IOException: Cannot run program "cd": error=2, Aucun fichier ou dossier de ce type
          at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
          at org.jberet.support.io.OsCommandBatchlet.process(OsCommandBatchlet.java:211)
          at org.jberet.runtime.runner.BatchletRunner.run(BatchletRunner.java:74)
          at org.jberet.runtime.runner.StepExecutionRunner.runBatchletOrChunk(StepExecutionRunner.java:226)
          at org.jberet.runtime.runner.StepExecutionRunner.run(StepExecutionRunner.java:142)
          at org.jberet.runtime.runner.CompositeExecutionRunner.runStep(CompositeExecutionRunner.java:170)
          at org.jberet.runtime.runner.CompositeExecutionRunner.runFromHeadOrRestartPoint(CompositeExecutionRunner.java:94)
          at org.jberet.runtime.runner.JobExecutionRunner.run(JobExecutionRunner.java:58)
          at org.jberet.spi.JobExecutor$1.run(JobExecutor.java:100)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
          at java.lang.Thread.run(Thread.java:748)
      Caused by: java.io.IOException: error=2, Aucun fichier ou dossier de ce type
          at java.lang.UNIXProcess.forkAndExec(Native Method)
          at java.lang.UNIXProcess.<init>(UNIXProcess.java:247)
          at java.lang.ProcessImpl.start(ProcessImpl.java:134)
          at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
          ... 11 more
      
       

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              lilianbenoit Lilian BENOIT
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: