def test_indexAbort(self):
        # Ensure that failed build (which deletes the tag), remains marked
        # (gone) forever.  Also ensure that next run gets the same message by
        # default
        self._setupRepo()
        git_results.run(shlex.split("results/test/run -m 'h'"))
        with open('git-results-build', 'w') as f:
            f.write("hehehihoweihfowhef")
        try:
            git_results.run(shlex.split("results/test/run -m 'h1'"))
            self.fail("Build didn't fail?")
        except __HOLE__:
            pass
        self.assertEqual("1 (  ok) - h\n2 (gone) - h1\n",
                open('results/test/run/INDEX').read())
        with open('git-results-build', 'w') as f:
            f.write("cp hello_world hello_world_2")
        os.environ['EDITOR'] = 'echo ", now h2" >>'
        git_results.run(shlex.split("results/test/run"))
        self.assertEqual("1 (  ok) - h\n2 (  ok) - h1, now h2\n",
                open('results/test/run/INDEX').read())
dataset/ETHPy150Open wwoods/git-results/test/test_integration.py/TestGitResults.test_indexAbort