ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jayush Luniya" <jlun...@hortonworks.com>
Subject Re: Review Request 35684: Windows unit tests: Agent unit tests: fix the imports & failing patches
Date Thu, 16 Jul 2015 22:53:07 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/35684/#review91985
-----------------------------------------------------------


I see following error on Windows

[INFO]
[INFO] --- exec-maven-plugin:1.2.1:exec (python-test) @ ambari-agent ---
Traceback (most recent call last):
  File "unitTests.py", line 177, in <module>
    main()
  File "unitTests.py", line 142, in main
    suite = all_tests_suite(test_mask)
  File "unitTests.py", line 130, in all_tests_suite
    suite = unittest.TestLoader().loadTestsFromNames(tests_list)
  File "C:\Python27\lib\unittest\loader.py", line 130, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "C:\Python27\lib\unittest\loader.py", line 91, in loadTestsFromName
    module = __import__('.'.join(parts_copy))
  File "C:\trunk\ambari\ambari-agent\src\test\python\resource_management\TestContentSources.py",
line 28, in <module>
    from resource_management.core import sudo
  File "C:\trunk\ambari\ambari-common\src\main\python\resource_management\core\sudo.py", line
32, in <module>
    if os.geteuid() == 0:
AttributeError: 'module' object has no attribute 'geteuid'
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.843s
[INFO] Finished at: Thu Jul 16 15:52:04 PDT 2015
[INFO] Final Memory: 8M/61M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (python-test)
on project ambari-agent: C
mand execution failed. Process exited with an error: 1 (Exit value: 1) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following
articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

- Jayush Luniya


On June 25, 2015, 4:45 p.m., Florian Barca wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/35684/
> -----------------------------------------------------------
> 
> (Updated June 25, 2015, 4:45 p.m.)
> 
> 
> Review request for Ambari, Artem Baranchuk, Eugene Chekanskiy, and Jayush Luniya.
> 
> 
> Bugs: AMBARI-12036
>     https://issues.apache.org/jira/browse/AMBARI-12036
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> Excluded the inapplicable tests for now. Coalesced the OS mock.
> 
> 
> Diffs
> -----
> 
>   ambari-agent/src/test/python/ambari_agent/TestActionQueue.py 4e130f9c4278bc6a1acb963c3fc115f7e4dbcab7

>   ambari-agent/src/test/python/ambari_agent/TestActualConfigHandler.py 7f88e174099811edbaeff29435dee4dc2e9830f3

>   ambari-agent/src/test/python/ambari_agent/TestCertGeneration.py d188dbd82899fb095fbc546b318789827681e530

>   ambari-agent/src/test/python/ambari_agent/TestController.py ba6e6c81765d559a81db257ce07adc0048aa3673

>   ambari-agent/src/test/python/ambari_agent/TestCustomServiceOrchestrator.py 831eccef48f7439363441194b820ae6cb55be905

>   ambari-agent/src/test/python/ambari_agent/TestDataCleaner.py 3ecb46a2d523c41fa0d193bfa233dbd43bfff4f7

>   ambari-agent/src/test/python/ambari_agent/TestFileCache.py da08782a5f415f873fa59ec45ad79afe86935bb2

>   ambari-agent/src/test/python/ambari_agent/TestHostInfo.py 58745f9471ca3910ee4d9fe6b226413a3cbac012

>   ambari-agent/src/test/python/ambari_agent/TestHostname.py 8cfcc9612c335112a10f9736890d5e7ba6e91835

>   ambari-agent/src/test/python/ambari_agent/TestLiveStatus.py e9bb776037b8c2c887be7810c38d5841cf426da4

>   ambari-agent/src/test/python/ambari_agent/TestMain.py 8c8d34795f477b6f7a116ac21dd0ef501e5f90a5

>   ambari-agent/src/test/python/ambari_agent/TestNetUtil.py 3d8083b9565b929466fcb173f151a3e2ca29c1e3

>   ambari-agent/src/test/python/ambari_agent/TestPythonExecutor.py eb6dd2935bc8e12e45b6bc7c766a0ad9f45d6004

>   ambari-agent/src/test/python/ambari_agent/TestSecurity.py c47172ae8e74ccefcefdef36e93dd1f3de5f799a

>   ambari-agent/src/test/python/ambari_agent/TestStatusCheck.py 32be4a8c96784aebe50a61b8bced851cbfb2a257

>   ambari-common/src/test/python/only_for_platform.py 1b08db5eca416ce9bec3d957a0d4aa3ab4df359c

> 
> Diff: https://reviews.apache.org/r/35684/diff/
> 
> 
> Testing
> -------
> 
> mvn clean test on Linux and Windows
> 
> 
> Thanks,
> 
> Florian Barca
> 
>


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