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
1=== modified file 'run-tests.bat'
2--- run-tests.bat 2012-07-13 18:55:53 +0000
3+++ run-tests.bat 2012-07-30 18:24:18 +0000
4@@ -12,35 +12,29 @@
5 :: You should have received a copy of the GNU General Public License along
6 :: with this program. If not, see <http://www.gnu.org/licenses/>.
7 @ECHO off
8-:: We could have Python 2.6 or 2.7 on Windows. In order to check availability,
9-:: we should first check for 2.7, and run the tests, otherwise fall back to 2.6.
10-SET PYTHONEXECPATH=""
11-:: This is very annoying; FOR /F will work differently depending on the output
12-:: of reg which is not consistent between OS versions (XP, 7). We must choose
13-:: the tokens according to OS version.
14-SET PYTHONPATHTOKENS=3
15-VER | FIND "XP" > nul
16-IF %ERRORLEVEL% == 0 SET PYTHONPATHTOKENS=4
17-ECHO Checking if python 2.7 is in the system
18-:: Look for python 2.7
19-FOR /F "tokens=%PYTHONPATHTOKENS%" %%A IN ('REG QUERY HKLM\Software\Python\PythonCore\2.7\InstallPath /ve') DO @SET PYTHONEXECPATH=%%A
20-IF NOT %PYTHONEXECPATH% == "" GOTO :PYTHONPRESENT
21-ECHO Checking if python 2.6 is in the system
22-:: we do not have python 2.7 in the system, try to find 2.6
23-FOR /F "tokens=%PYTHONPATHTOKENS%" %%A IN ('REG QUERY HKLM\Software\Python\PythonCore\2.6\InstallPath /ve') DO @SET PYTHONEXECPATH=%%A
24-IF NOT %PYTHONEXECPATH% == "" GOTO :PYTHONPRESENT
25-:: we do not have python (2.6 or 2.7), therefore we go to end
26+
27+SET PYTHONEXEPATH=""
28+SET PYTHONPATH=.
29+
30+ECHO Checking for Python on the path
31+:: Look for Python from buildout
32+FOR %%A in (python.exe) do (SET PYTHONEXEPATH=%%~$PATH:A)
33+FOR %%C in (pyflakes) do (SET FLAKESPATH=%%~$PATH:C)
34+FOR %%D in (pep8.exe) do (SET PEP8PATH=%%~$PATH:D)
35+
36+IF NOT "%PYTHONEXEPATH%" == "" GOTO :PYTHONPRESENT
37+
38 ECHO Please ensure you have python installed
39 GOTO :END
40
41 :PYTHONPRESENT
42 ECHO Python found, executing the tests...
43 :: execute the tests with a number of ignored linux only modules
44-"%PYTHONEXECPATH%\python.exe" setup.py build test clean
45-"%PYTHONEXECPATH%\python.exe" "%PYTHONEXECPATH%\Scripts\pyflakes" dirspec
46+"%PYTHONEXEPATH%" setup.py build test clean
47+"%PYTHONEXEPATH%" "%FLAKESPATH%" dirspec
48 :: test for style if we can, if pep8 is not present, move to the end
49-IF EXIST "%PYTHONEXECPATH%Scripts\pep8.exe"
50-"%PYTHONEXECPATH%\Scripts\pep8.exe" --repeat dirspec
51-ELSE
52-ECHO Style checks were not done
53+IF EXIST "%PEP8PATH%" (
54+"%PEP8PATH%" --repeat dirspec
55+)ELSE (
56+ECHO Style checks were not done)
57 :END

Subscribers

People subscribed via source and target branches

to all changes: