mirror of
https://github.com/libvirt/libvirt.git
synced 2026-08-02 17:39:32 -05:00
tests: storage hardcoding paths for mount & vgchange
This is redundant since the tests will strip any path component from the binary name before comparison. Reviewed-by: Peter Krempa <pkrempa@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
@@ -6,14 +6,6 @@
|
||||
|
||||
#define VIR_FROM_THIS VIR_FROM_NONE
|
||||
|
||||
#ifndef MOUNT
|
||||
# define MOUNT "/usr/bin/mount"
|
||||
#endif
|
||||
|
||||
#ifndef VGCHANGE
|
||||
# define VGCHANGE "/usr/sbin/vgchange"
|
||||
#endif
|
||||
|
||||
static int
|
||||
testCompareXMLToArgvFiles(bool shouldFail,
|
||||
const char *poolxml,
|
||||
@@ -46,12 +38,12 @@ testCompareXMLToArgvFiles(bool shouldFail,
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
cmd = virStorageBackendFileSystemMountCmd(MOUNT, def, src);
|
||||
cmd = virStorageBackendFileSystemMountCmd("mount", def, src);
|
||||
def = NULL;
|
||||
break;
|
||||
|
||||
case VIR_STORAGE_POOL_LOGICAL:
|
||||
cmd = virStorageBackendLogicalChangeCmd(VGCHANGE, def, true);
|
||||
cmd = virStorageBackendLogicalChangeCmd("vgchange", def, true);
|
||||
break;
|
||||
|
||||
case VIR_STORAGE_POOL_DIR:
|
||||
|
||||
Reference in New Issue
Block a user