Skip to content

Commit

Permalink
tests: Do not set logging when loading gpt_test
Browse files Browse the repository at this point in the history
We don't want to set logging when skipping the test case so it
cannot be defined on the module level.
  • Loading branch information
vojtechtrefny committed Oct 11, 2024
1 parent dae2f78 commit 23d4cf3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/vmtests/gpt_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

import parted

set_up_logging()


class GPTTestBase(VMBackedTestCase):

Expand All @@ -34,6 +32,12 @@ def __init__(self, *args, **kwargs):
self.usrluks = None
self.usr = None

@classmethod
def setUpClass(cls):
super().setUpClass()

set_up_logging()

def set_up_disks(self):
disklabel.DiskLabel.set_default_label_type("gpt")

Expand Down

0 comments on commit 23d4cf3

Please sign in to comment.