Fix pool_target issues in test.

This commit is contained in:
Aaron Whitehouse 2022-03-17 21:57:40 +00:00
parent 3e9730d135
commit 8571510685
1 changed files with 1 additions and 2 deletions

View File

@ -36,10 +36,9 @@ class TestMonitoringOutput(unittest.TestCase):
"""Test what happens if there is a zpool, but with no snapshots"""
# Make the zpool
if os.environ.get("POOL_TARGET") == "":
if not os.environ.get("POOL_TARGET"):
pool_disk_image = "/zpool.img"
else:
print(os.environ.get("POOL_TARGET"))
subprocess.run(["mkdir", "-p", os.environ.get("POOL_TARGET")], check=True)
pool_disk_image = os.environ.get("POOL_TARGET") + "/zpool.img"