1. Arne Babenhauserheide
  2. python_tests


Arne Babenhauserheide  committed 4e84453

Piping stderr from adding to /dev/null, since we wouldn't add again in a real life setting.

  • Participants
  • Parent commits 0f002a5
  • Branches default

Comments (0)

Files changed (1)

File distributed_version_control_system_test.py

View file
  • Ignore whitespace
 # encoding: utf-8
 """Test the speed of different distributed version control systems. 
-First targets: git and Mercurial
 Proceeding: Just call them via the bash and check their speed with the general_test_function. 
-Ideas: Include bazaar, too. 
-TODO: for multiple file change tests: backup_repo_git(), undo_git(), backup_repo_hg(), undo_hg()
 This was inspired by the tests done at 
 def commit_git(*args): 
     """Commit to the git repository."""
     # Add all files
-    shellcall("git add *")
+    shellcall("git add * 2>/dev/null")
     # And commit
     shellcall("git commit -m 'test'")
 def commit_hg(*args): 
     """Commit all files to the Mercurial repository."""
     # Add all untracked files
-    shellcall("hg add *")
+    shellcall("hg add * 2>/dev/null")
     # And commit
     shellcall("hg commit -m 'test'")
 def commit_bzr(*args): 
     """Commit all files to the Bazaar repository."""
     # Add all untracked files
-    shellcall("bzr add *")
+    shellcall("bzr add * 2>/dev/null")
     # And commit
     shellcall("bzr commit -m 'test'")