Merge lp:~dobey/dirspec/update-4-0 into lp:dirspec/stable-4-0

Proposed by dobey on 2012-07-30
Status: Merged
Approved by: dobey on 2012-07-30
Approved revision: no longer in the source branch.
Merged at revision: 9
Proposed branch: lp:~dobey/dirspec/update-4-0
Merge into: lp:dirspec/stable-4-0
Diff against target: 57 lines (+18/-24)
1 file modified
run-tests.bat (+18/-24)
To merge this branch: bzr merge lp:~dobey/dirspec/update-4-0
Reviewer Review Type Date Requested Status
Roberto Alsina (community) 2012-07-30 Approve on 2012-07-30
Review via email: mp+117317@code.launchpad.net

Commit message

[Brian Curtin]

    Adjust run-tests.bat to work with the Windows buildout environment.

To post a comment you must log in.
Roberto Alsina (ralsina) :
review: Approve
Ubuntu One Auto Pilot (otto-pilot) wrote :
Download full text (6.0 KiB)

The attempt to merge lp:~dobey/dirspec/update-4-0 into lp:dirspec/stable-4-0 failed. Below is the output from the failed tests.

running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/dirspec
copying dirspec/utils.py -> build/lib.linux-x86_64-2.7/dirspec
copying dirspec/basedir.py -> build/lib.linux-x86_64-2.7/dirspec
copying dirspec/__init__.py -> build/lib.linux-x86_64-2.7/dirspec
running test
running egg_info
creating dirspec.egg-info
writing dirspec.egg-info/PKG-INFO
writing top-level names to dirspec.egg-info/top_level.txt
writing dependency_links to dirspec.egg-info/dependency_links.txt
writing manifest file 'dirspec.egg-info/SOURCES.txt'
reading manifest file 'dirspec.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'dirspec.egg-info/SOURCES.txt'
running build_ext

+ python ./setup.py build test clean
test_cache_home (dirspec.tests.test_basedir.BasedirTestCase)
dirspec.tests.test_basedir.BasedirTestCase.test_cache_home ... ok
test_config_dirs (dirspec.tests.test_basedir.BasedirTestCase)
dirspec.tests.test_basedir.BasedirTestCase.test_config_dirs ... ok
test_config_home (dirspec.tests.test_basedir.BasedirTestCase)
dirspec.tests.test_basedir.BasedirTestCase.test_config_home ... ok
test_data_dirs (dirspec.tests.test_basedir.BasedirTestCase)
dirspec.tests.test_basedir.BasedirTestCase.test_data_dirs ... ok
test_data_home (dirspec.tests.test_basedir.BasedirTestCase)
dirspec.tests.test_basedir.BasedirTestCase.test_data_home ... ok
test_default_cache_home (dirspec.tests.test_basedir.BasedirTestCase)
dirspec.tests.test_basedir.BasedirTestCase.test_default_cache_home ... ok
test_default_config_dirs (dirspec.tests.test_basedir.BasedirTestCase)
dirspec.tests.test_basedir.BasedirTestCase.test_default_config_dirs ... ok
test_default_config_home (dirspec.tests.test_basedir.BasedirTestCase)
dirspec.tests.test_basedir.BasedirTestCase.test_default_config_home ... ok
test_default_data_dirs (dirspec.tests.test_basedir.BasedirTestCase)
dirspec.tests.test_basedir.BasedirTestCase.test_default_data_dirs ... ok
test_default_data_home (dirspec.tests.test_basedir.BasedirTestCase)
dirspec.tests.test_basedir.BasedirTestCase.test_default_data_home ... ok
test_load_config_paths_filter (dirspec.tests.test_basedir.BasedirTestCase)
dirspec.tests.test_basedir.BasedirTestCase.test_load_config_paths_filter ... ok
test_save_config_path (dirspec.tests.test_basedir.BasedirTestCase)
dirspec.tests.test_basedir.BasedirTestCase.test_save_config_path ... ok
test_xdg_cache_home_is_utf8_bytes (dirspec.tests.test_basedir.BasedirTestCase)
dirspec.tests.test_basedir.BasedirTestCase.test_xdg_cache_home_is_utf8_bytes ... ok
test_xdg_config_dirs_are_bytes (dirspec.tests.test_basedir.BasedirTestCase)
dirspec.tests.test_basedir.BasedirTestCase.test_xdg_config_dirs_are_bytes ... ok
test_xdg_config_home_is_utf8_bytes (dirspec.tests.test_basedir.BasedirTestCase)
dirspec.tests.test_basedir.BasedirTestCase.test_xdg_config_home_is_utf8_bytes ... ok
test_xdg_data_dirs_are_bytes (dirspec.tests.test_basedir.BasedirTestCase)
dirspec.tests.test_basedir.BasedirTestCase.test_xdg_data_dirs_are_bytes ... ok
...

Read more...

lp:~dobey/dirspec/update-4-0 updated on 2012-07-30
9. By Brian Curtin on 2012-07-30

[Brian Curtin]

    Adjust run-tests.bat to work with the Windows buildout environment.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'run-tests.bat'
--- run-tests.bat 2012-07-13 18:55:53 +0000
+++ run-tests.bat 2012-07-30 18:24:18 +0000
@@ -12,35 +12,29 @@
12:: You should have received a copy of the GNU General Public License along12:: You should have received a copy of the GNU General Public License along
13:: with this program. If not, see <http://www.gnu.org/licenses/>.13:: with this program. If not, see <http://www.gnu.org/licenses/>.
14@ECHO off14@ECHO off
15:: We could have Python 2.6 or 2.7 on Windows. In order to check availability,15
16:: we should first check for 2.7, and run the tests, otherwise fall back to 2.6.16SET PYTHONEXEPATH=""
17SET PYTHONEXECPATH=""17SET PYTHONPATH=.
18:: This is very annoying; FOR /F will work differently depending on the output18
19:: of reg which is not consistent between OS versions (XP, 7). We must choose19ECHO Checking for Python on the path
20:: the tokens according to OS version.20:: Look for Python from buildout
21SET PYTHONPATHTOKENS=321FOR %%A in (python.exe) do (SET PYTHONEXEPATH=%%~$PATH:A)
22VER | FIND "XP" > nul22FOR %%C in (pyflakes) do (SET FLAKESPATH=%%~$PATH:C)
23IF %ERRORLEVEL% == 0 SET PYTHONPATHTOKENS=423FOR %%D in (pep8.exe) do (SET PEP8PATH=%%~$PATH:D)
24ECHO Checking if python 2.7 is in the system24
25:: Look for python 2.725IF NOT "%PYTHONEXEPATH%" == "" GOTO :PYTHONPRESENT
26FOR /F "tokens=%PYTHONPATHTOKENS%" %%A IN ('REG QUERY HKLM\Software\Python\PythonCore\2.7\InstallPath /ve') DO @SET PYTHONEXECPATH=%%A26
27IF NOT %PYTHONEXECPATH% == "" GOTO :PYTHONPRESENT
28ECHO Checking if python 2.6 is in the system
29:: we do not have python 2.7 in the system, try to find 2.6
30FOR /F "tokens=%PYTHONPATHTOKENS%" %%A IN ('REG QUERY HKLM\Software\Python\PythonCore\2.6\InstallPath /ve') DO @SET PYTHONEXECPATH=%%A
31IF NOT %PYTHONEXECPATH% == "" GOTO :PYTHONPRESENT
32:: we do not have python (2.6 or 2.7), therefore we go to end
33ECHO Please ensure you have python installed27ECHO Please ensure you have python installed
34GOTO :END28GOTO :END
3529
36:PYTHONPRESENT30:PYTHONPRESENT
37ECHO Python found, executing the tests...31ECHO Python found, executing the tests...
38:: execute the tests with a number of ignored linux only modules32:: execute the tests with a number of ignored linux only modules
39"%PYTHONEXECPATH%\python.exe" setup.py build test clean33"%PYTHONEXEPATH%" setup.py build test clean
40"%PYTHONEXECPATH%\python.exe" "%PYTHONEXECPATH%\Scripts\pyflakes" dirspec34"%PYTHONEXEPATH%" "%FLAKESPATH%" dirspec
41:: test for style if we can, if pep8 is not present, move to the end35:: test for style if we can, if pep8 is not present, move to the end
42IF EXIST "%PYTHONEXECPATH%Scripts\pep8.exe"36IF EXIST "%PEP8PATH%" (
43"%PYTHONEXECPATH%\Scripts\pep8.exe" --repeat dirspec37"%PEP8PATH%" --repeat dirspec
44ELSE38)ELSE (
45ECHO Style checks were not done39ECHO Style checks were not done)
46:END40:END

Subscribers

People subscribed via source and target branches

to all changes: