[Python-checkins] CVS: python/dist/src/PCbuild rt.bat,1.3,1.4

Tim Peters tim_one@users.sourceforge.net
Fri, 19 Jan 2001 17:53:45 -0800


Update of /cvsroot/python/python/dist/src/PCbuild
In directory usw-pr-cvs1:/tmp/cvs-serv1624/python/dist/src/pcbuild

Modified Files:
	rt.bat 
Log Message:
When running the tests twice, stuck a "Press any key to continue ..." pause
between passes:  Win9x DOS boxes are limited to 50 lines max, and the result
of the first pass scrolls off irretrievably otherwise.  Also simplified
the goto-laden logic a bit.


Index: rt.bat
===================================================================
RCS file: /cvsroot/python/python/dist/src/PCbuild/rt.bat,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** rt.bat	2001/01/19 21:43:49	1.3
--- rt.bat	2001/01/20 01:53:43	1.4
***************
*** 12,19 ****
  @if "%1"=="-d" set _exe=python_d
  @if "%1"=="-d" shift
! @if "%_qmode%"=="yes" goto LeavePyc
  @if "%1"=="-q" set _qmode=yes
  @if "%1"=="-q" shift
! @if "%_qmode%"=="yes" goto LeavePyc
  @echo Deleting .pyc/.pyo files ...
  @del ..\Lib\*.pyc
--- 12,19 ----
  @if "%1"=="-d" set _exe=python_d
  @if "%1"=="-d" shift
! @if "%_qmode%"=="yes" goto Qmode
  @if "%1"=="-q" set _qmode=yes
  @if "%1"=="-q" shift
! @if "%_qmode%"=="yes" goto Qmode
  @echo Deleting .pyc/.pyo files ...
  @del ..\Lib\*.pyc
***************
*** 21,30 ****
  @del ..\Lib\test\*.pyc
  @del ..\Lib\test\*.pyo
- :LeavePyc
  %_exe% ../lib/test/regrtest.py %1 %2 %3 %4 %5 %6 %7 %8 %9
! @if "%_qmode%"=="yes" goto Done
! @echo Running again without deleting .pyc/.pyo first:
  %_exe% ../lib/test/regrtest.py %1 %2 %3 %4 %5 %6 %7 %8 %9
- :Done
  @set _exe=
  @set _qmode=
--- 21,29 ----
  @del ..\Lib\test\*.pyc
  @del ..\Lib\test\*.pyo
  %_exe% ../lib/test/regrtest.py %1 %2 %3 %4 %5 %6 %7 %8 %9
! @echo About to run again without deleting .pyc/.pyo first:
! @pause
! :Qmode
  %_exe% ../lib/test/regrtest.py %1 %2 %3 %4 %5 %6 %7 %8 %9
  @set _exe=
  @set _qmode=