# HG changeset patch
# User Boris Feld <boris.feld@octobus.net>
# Date 1516012713 -3600
#      Mon Jan 15 11:38:33 2018 +0100
# Node ID 51f15cf93d185c97d6c69e0972b26673ae5bb89c
# Parent  a7c85beeb36d6700fa8609d6c6b028ecf1b394b5
Deactivate the test_push test, it's too much resources intensive

The test makes the IO/WAIT go up to 50% on the benchmark machine, we need to
find another way like maybe snapshotting the repository.

diff --git a/benchmarks/basic_commands.py b/benchmarks/basic_commands.py
--- a/benchmarks/basic_commands.py
+++ b/benchmarks/basic_commands.py
@@ -227,15 +227,15 @@
             # Ignore the return code
             return self._timeit(self._single_execute, (cmd, False))
 
-    def track_push(self, *args, **kwargs):
-        def clone_and_push():
-            with self.clone_from_cache() as clone_path:
-                cmd = [self.hgpath, '--cwd', self.repo_path, 'push', '-f',
-                       clone_path]
-                if self.revset:
-                    cmd.extend(['-r', 'default'])
-                return self._single_execute(cmd, False)
-        return self._timeit(clone_and_push)
+    # def track_push(self, *args, **kwargs):
+    #     def clone_and_push():
+    #         with self.clone_from_cache() as clone_path:
+    #             cmd = [self.hgpath, '--cwd', self.repo_path, 'push', '-f',
+    #                    clone_path]
+    #             if self.revset:
+    #                 cmd.extend(['-r', 'default'])
+    #             return self._single_execute(cmd, False)
+    #     return self._timeit(clone_and_push)
 
 
 # class CloneTrackSuite(BaseTrackTestSuite):