[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Test suite cleanup: schedule tests: make_repos_and_wc -> sbox.build (part 2)

From: <wiskid_at_gmx.net>
Date: 2003-09-07 12:22:56 CEST

Well the subject says it all. The patch is incremental to the patch in my
previous mail (the one from just a minute ago).

bye,

Erik.

Log:
[[[

* subversion/tests/clients/cmdline/schedule_tests.py
  convert calls make_repos_and_wc to sbox.build
  to conform to test suite practice

]]]

--- subversion/tests/clients/cmdline-old/schedule_tests.py 2003-09-07
11:27:49.000000000 +0200
+++ subversion/tests/clients/cmdline/schedule_tests.py 2003-09-07
11:28:25.000000000 +0200
@@ -64,10 +64,9 @@
 def add_files(sbox):
   "schedule: add some files"
 
+ sbox.build()
   wc_dir = sbox.wc_dir
 
- svntest.actions.make_repo_and_wc(sbox)
-
   # Create some files, then schedule them for addition
   delta_path = os.path.join(wc_dir, 'delta')
   zeta_path = os.path.join(wc_dir, 'A', 'B', 'zeta')
@@ -94,10 +93,9 @@
 def add_directories(sbox):
   "schedule: add some directories"
 
+ sbox.build()
   wc_dir = sbox.wc_dir
 
- svntest.actions.make_repo_and_wc(sbox)
-
   # Create some directories, then schedule them for addition
   X_path = os.path.join(wc_dir, 'X')
   Y_path = os.path.join(wc_dir, 'A', 'C', 'Y')
@@ -124,10 +122,9 @@
 def nested_adds(sbox):
   "schedule: add some nested files and directories"
 
+ sbox.build()
   wc_dir = sbox.wc_dir
 
- svntest.actions.make_repo_and_wc(sbox)
-
   # Create some directories then schedule them for addition
   X_path = os.path.join(wc_dir, 'X')
   Y_path = os.path.join(wc_dir, 'A', 'C', 'Y')
@@ -212,10 +209,9 @@
 def delete_files(sbox):
   "schedule: delete some files"
 
+ sbox.build()
   wc_dir = sbox.wc_dir
 
- svntest.actions.make_repo_and_wc(sbox)
-
   # Schedule some files for deletion
   iota_path = os.path.join(wc_dir, 'iota')
   mu_path = os.path.join(wc_dir, 'A', 'mu')
@@ -236,10 +232,9 @@
 def delete_dirs(sbox):
   "schedule: delete some directories"
 
+ sbox.build()
   wc_dir = sbox.wc_dir
 
- svntest.actions.make_repo_and_wc(sbox)
-
   # Schedule some directories for deletion (this is recursive!)
   E_path = os.path.join(wc_dir, 'A', 'B', 'E')
   F_path = os.path.join(wc_dir, 'A', 'B', 'F')
@@ -504,10 +499,9 @@
 def unschedule_missing_added(sbox):
   "unschedule addition on missing items"
 
+ sbox.build()
   wc_dir = sbox.wc_dir
 
- svntest.actions.make_repo_and_wc(sbox)
-
   # Create some files and dirs, then schedule them for addition
   file1_path = os.path.join(wc_dir, 'file1')
   file2_path = os.path.join(wc_dir, 'file2')
@@ -553,10 +547,9 @@
 def delete_missing(sbox):
   "schedule and commit deletion on missing items"
 
+ sbox.build()
   wc_dir = sbox.wc_dir
 
- svntest.actions.make_repo_and_wc(sbox)
-
   mu_path = os.path.join(wc_dir, 'A', 'mu')
   H_path = os.path.join(wc_dir, 'A', 'D', 'H')
 
@@ -592,8 +585,8 @@
   "revert inside a newly added dir"
 
   sbox.build()
-
   wc_dir = sbox.wc_dir
+
   was_cwd = os.getcwd()
   os.chdir(wc_dir)
 

-- 
COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test
--------------------------------------------------
1. GMX TopMail - Platz 1 und Testsieger!
2. GMX ProMail - Platz 2 und Preis-Qualitätssieger!
3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8. e-Post
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Sep 7 14:52:37 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.