Skip to content
Snippets Groups Projects
Commit d29207941c5c authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

benchmark: add a test for noop update

Let us start simple.
parent ed5b302a28f5
No related branches found
No related tags found
No related merge requests found
......@@ -195,6 +195,27 @@
self.hg('status', '--all')
class BaseUpdateTimeTestSuite(BaseTestSuite):
update_source_rev = None
timeout = 500
def setup(self, *args, **kwargs):
super(BaseUpdateTimeTestSuite, self).setup(*args, **kwargs)
with open(self.need_update_marker_path, 'w'):
pass
self.hg("up", "-r", self.update_source_rev)
class NoOpUpdateTimeTestSuite(BaseUpdateTimeTestSuite):
update_source_rev = "tip"
@benchmark_name('simple_command.write.update.noop.time_bench')
@params_as_kwargs
def time_update(self, repo, **kwargs):
self.hg("up", "-r", "tip")
# class TimeTestSuite(BaseTestSuite):
#
# def time_emptystatus(self, *args, **kwargs):
......@@ -274,14 +295,6 @@
# self.hg("log", "-r", "-%d:" % changesets)
#
#
# class UpdateTimeTestSuite(BaseNChangesetsTestSuite):
#
# timeout = 500
#
# @params_as_kwargs
# def time_up_tip(self, repo, changesets, **kwargs):
# self.hg("up", "-r", "tip~%d" % changesets)
# self.hg("up", "-r", "tip")
#
#
# class BundleTimeTestSuite(BaseNChangesetsTestSuite):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment