Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-14618

Build failure due to failing Bats test

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Minor
    • Resolution: Not A Problem
    • 3.0.0-alpha4
    • None
    • common
    • None
    • Ubuntu 14.04
      x86, ppc64le
      $ java -version
      openjdk version "1.8.0_111"
      OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14)
      OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)

    Description

      The build fails with the following error :

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (common-test-bats-driver) on project hadoop-common: An Ant BuildException has occured: exec returned: 1
      [ERROR] around Ant part ...<exec failonerror="true" dir="src/test/scripts" executable="bash">... @ 4:69 in /ws/hadoop/hadoop-common-project/hadoop-common/target/antrun/build-main.xml
      

      There is a failure in the bats test as follows :

      [exec] Running bats -t hadoop_mkdir.bats
           [exec] 1..3
           [exec] ok 1 hadoop_mkdir (create)
           [exec] ok 2 hadoop_mkdir (exists)
           [exec] not ok 3 hadoop_mkdir (failed)
           [exec] # (in test file hadoop_mkdir.bats, line 41)
           [exec] #   `[ "${status}" != 0 ]' failed
           [exec] # bindir: /var/lib/jenkins/workspace/hadoop-master/hadoop-common-project/hadoop-common/src/test/scripts
      

      The required directories are getting created, however still the test fails.

      I am using the following bats version :

      # bats -version
      Bats 0.4.0
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            Sonia Sonia Garudi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: