~mmcg069/software-center/star-tweaks

« back to all changes in this revision

Viewing changes to test/test_startup.py

  • Committer: Matthew McGowan
  • Date: 2011-03-23 10:45:21 UTC
  • mfrom: (1556.1.62 trunk)
  • Revision ID: matthew.joseph.mcgowan@gmail.com-20110323104521-0lysrjm8kudev4nb
merge w trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
        pickle.dump(
28
28
            self.revno_to_times_list, open("revno_to_times_list.p", "w"))
29
29
 
30
 
    def test_startup_time(self):
 
30
    # FIXME: debug why this sometimes hangs
 
31
    def disabled_for_now_untiL_hang_is_found_test_startup_time(self):
31
32
        for i in range(5):
32
33
            time_to_visible = self.create_ui_and_return_time_to_visible()
33
34
            self.record_test_run_data(time_to_visible)
37
38
        os.environ["PYTHONPATH"] = ".."
38
39
        now = time.time()
39
40
        # we get the time on stdout and detailed stats on stderr
40
 
        p = subprocess.Popen(["../software-center", "--measure-startup-time"],
 
41
        p = subprocess.Popen(["./software-center", "--measure-startup-time"],
 
42
                             cwd="..",
41
43
                             stdout=subprocess.PIPE, stderr=subprocess.PIPE)
42
44
        p.wait()
43
45
        # this is the time with the python statup overhead