incubator-ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xiong <casic_2...@126.com>
Subject Unit tests are failing on Master build
Date Mon, 26 Aug 2013 08:05:24 GMT
when I run the command as follow, it is right.
mvn -X -B -e clean install package rpm:rpm -DskipTests -Dpython.ver="python >= 2.6"
but when I  setup the mock and  run the command to test, it is failing.
mvn -X -B -e clean test -Dpython.ver="python >= 2.6"
and the error is
[DEBUG] Executing command line: python2.6 unitTests.py
Traceback (most recent call last):
  File "unitTests.py", line 46, in <module>
    sys.exit(main())
  File "unitTests.py", line 38, in main
    modules]
  File "/usr/lib64/python2.6/unittest.py", line 575, in loadTestsFromName
    module = __import__('.'.join(parts_copy))
  File "/home/incubator-ambari/ambari-server/src/test/python/TestAmbaryServer.py", line 23,
in <module>
    from mock.mock import patch
ImportError: No module named mock
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Ambari Main ....................................... SUCCESS [0.126s]
[INFO] Apache Ambari Project POM ......................... SUCCESS [0.051s]
[INFO] Ambari Web ........................................ SUCCESS [8.625s]
[INFO] Ambari Server ..................................... FAILURE [10:21.114s]
[INFO] Ambari Agent ...................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10:30.562s
[INFO] Finished at: Mon Aug 26 15:28:08 CST 2013
[INFO] Final Memory: 34M/367M



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message