Otherwise the test is testing the wrong file.
Change-Id: Ia7dcda8d4f3a1fe87e74f4605a7010b66c38fa14
| ... | ... |
@@ -86,7 +86,7 @@ function _create_lvm_volume_group {
|
| 86 | 86 |
local backing_file=$DATA_DIR/$vg$BACKING_FILE_SUFFIX |
| 87 | 87 |
if ! sudo vgs $vg; then |
| 88 | 88 |
# Only create if the file doesn't already exists |
| 89 |
- [[ -f $DATA_DIR/$backing_file ]] || truncate -s $size $backing_file |
|
| 89 |
+ [[ -f $backing_file ]] || truncate -s $size $backing_file |
|
| 90 | 90 |
local vg_dev=`sudo losetup -f --show $backing_file` |
| 91 | 91 |
|
| 92 | 92 |
# Only create volume group if it doesn't already exist |