Revision e8230860 test/ganeti.bdev_unittest.py

b/test/ganeti.bdev_unittest.py
51 51

  
52 52
    prefix = os.environ.get("srcdir", None)
53 53
    if prefix:
54
      name = prefix + "/" + name
54
      name = prefix + "/test/" + name
55 55
    fh = open(name, "r")
56 56
    try:
57 57
      data = fh.read()
......
59 59
      fh.close()
60 60
    return data
61 61

  
62

  
63 62
  @staticmethod
64 63
  def _has_net(data, local, remote):
65 64
    """Check network connection parameters"""
......
115 114

  
116 115
  def setUp(self):
117 116
    """Read in txt data"""
118
    proc_data = "data/proc_drbd8.txt"
117
    proc_data = "test/data/proc_drbd8.txt"
119 118
    prefix = os.environ.get("srcdir", None)
120 119
    if prefix:
121 120
      proc_data = prefix + "/" + proc_data

Also available in: Unified diff