diff options
| author | Mike Frysinger <vapier@google.com> | 2022-12-08 08:55:54 -0500 |
|---|---|---|
| committer | Mike Frysinger <vapier@google.com> | 2022-12-08 22:22:39 +0000 |
| commit | e81528649236ec9fb5983191767a96dc30acff54 (patch) | |
| tree | 74b288fe316d673595a8eaf56e5270d4d41b224f /tests/test_manifest_xml.py | |
| parent | 0ab6b1168811586b62d8d1c26bad118b0a4b3807 (diff) | |
| download | git-repo-e81528649236ec9fb5983191767a96dc30acff54.tar.gz | |
tests: clean up repo_trace._TRACE_FILE patching
Patch this automatically for all tests rather than duplicating the
boilerplate in diff testcases.
Change-Id: I391d5c859974cda3d5680d34ede2ce6e9e925838
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/354358
Reviewed-by: Joanna Wang <jojwang@google.com>
Tested-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'tests/test_manifest_xml.py')
| -rw-r--r-- | tests/test_manifest_xml.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/test_manifest_xml.py b/tests/test_manifest_xml.py index c7e814a3..3634701f 100644 --- a/tests/test_manifest_xml.py +++ b/tests/test_manifest_xml.py | |||
| @@ -23,7 +23,6 @@ import xml.dom.minidom | |||
| 23 | 23 | ||
| 24 | import error | 24 | import error |
| 25 | import manifest_xml | 25 | import manifest_xml |
| 26 | import repo_trace | ||
| 27 | 26 | ||
| 28 | 27 | ||
| 29 | # Invalid paths that we don't want in the filesystem. | 28 | # Invalid paths that we don't want in the filesystem. |
| @@ -94,7 +93,6 @@ class ManifestParseTestCase(unittest.TestCase): | |||
| 94 | def setUp(self): | 93 | def setUp(self): |
| 95 | self.tempdirobj = tempfile.TemporaryDirectory(prefix='repo_tests') | 94 | self.tempdirobj = tempfile.TemporaryDirectory(prefix='repo_tests') |
| 96 | self.tempdir = self.tempdirobj.name | 95 | self.tempdir = self.tempdirobj.name |
| 97 | repo_trace._TRACE_FILE = os.path.join(self.tempdir, 'TRACE_FILE_from_test') | ||
| 98 | self.repodir = os.path.join(self.tempdir, '.repo') | 96 | self.repodir = os.path.join(self.tempdir, '.repo') |
| 99 | self.manifest_dir = os.path.join(self.repodir, 'manifests') | 97 | self.manifest_dir = os.path.join(self.repodir, 'manifests') |
| 100 | self.manifest_file = os.path.join( | 98 | self.manifest_file = os.path.join( |
