Merge lp:~brian.curtin/ubuntuone-control-panel/run-tests-update into lp:ubuntuone-control-panel

Proposed by Brian Curtin on 2012-10-08
Status: Merged
Approved by: Roberto Alsina on 2012-10-08
Approved revision: 362
Merged at revision: 364
Proposed branch: lp:~brian.curtin/ubuntuone-control-panel/run-tests-update
Merge into: lp:ubuntuone-control-panel
Diff against target: 31 lines (+4/-4)
1 file modified
run-tests.bat (+4/-4)
To merge this branch: bzr merge lp:~brian.curtin/ubuntuone-control-panel/run-tests-update
Reviewer Review Type Date Requested Status
Roberto Alsina (community) 2012-10-08 Approve on 2012-10-08
Review via email: mp+128583@code.launchpad.net

Commit Message

- Update run-tests.bat to work with buildout changes to executable paths.

Description of the Change

Update Windwos run-tests script to work with recent buildout changes

To post a comment you must log in.
Roberto Alsina (ralsina) :
review: Approve

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-08-06 17:23:10 +0000
3+++ run-tests.bat 2012-10-08 20:41:20 +0000
4@@ -25,8 +25,8 @@
5 ECHO Checking for Python on the path
6 :: Look for Python from buildout
7 FOR %%A in (python.exe) do (SET PYTHONEXEPATH=%%~$PATH:A)
8-FOR %%B in (u1trial) do (SET TRIALPATH=%%~$PATH:B)
9-FOR %%C in (u1lint) do (SET LINTPATH=%%~$PATH:C)
10+FOR %%B in (u1trial.exe) do (SET TRIALPATH=%%~$PATH:B)
11+FOR %%C in (u1lint.exe) do (SET LINTPATH=%%~$PATH:C)
12 FOR %%D in (pep8.exe) do (SET PEP8PATH=%%~$PATH:D)
13
14 IF NOT "%PYTHONEXEPATH%" == "" GOTO :PYTHONPRESENT
15@@ -64,14 +64,14 @@
16 "%PYTHONEXEPATH%" setup.py build
17 ECHO Running tests
18 :: execute the tests with a number of ignored linux only modules
19-"%PYTHONEXEPATH%" "%TRIALPATH%" --reactor=qt4 --gui -p %IGNORE_PATHS% -i %IGNORE_MODULES% %PARAMS% %MODULE%
20+"%TRIALPATH%" --reactor=qt4 --gui -p %IGNORE_PATHS% -i %IGNORE_MODULES% %PARAMS% %MODULE%
21 :: Clean the build from the setupt.py
22 ECHO Cleaning the generated code
23 "%PYTHONEXEPATH%" setup.py clean
24
25 IF %SKIPLINT% == 1 GOTO :CLEAN
26 ECHO Performing style checks...
27-"%PYTHONEXEPATH%" "%LINTPATH%" --ignore ubuntuone\controlpanel\gui\qt\ui "%MODULE%"
28+"%LINTPATH%" --ignore ubuntuone\controlpanel\gui\qt\ui "%MODULE%"
29 "%PEP8PATH%" --exclude ".svn,CVS,.bzr,.hg,.git,*_ui.py,*_rc.py" --repeat . bin\*
30 :CLEAN
31 :: Delete the temp folders

Subscribers

People subscribed via source and target branches