Commit ae9da390 authored by Iustin Pop's avatar Iustin Pop
Browse files

Fix bdev unittest when run under distcheck

The path to the filename for drbd8 proc data is not correctly computed
when using distcheck. The patch duplicates it from the other drbd tests.

Reviewed-by: ultrotter
parent 6b90c22e
......@@ -115,7 +115,11 @@ class TestDRBD8Status(unittest.TestCase):
def setUp(self):
"""Read in txt data"""
self.proc_data = bdev.DRBD8._GetProcData(filename="data/proc_drbd8.txt")
proc_data = "data/proc_drbd8.txt"
prefix = os.environ.get("srcdir", None)
if prefix:
proc_data = prefix + "/" + proc_data
self.proc_data = bdev.DRBD8._GetProcData(filename=proc_data)
self.mass_data = bdev.DRBD8._MassageProcData(self.proc_data)
def testMinorNotFound(self):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment