summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard Jones <rjones@trick.home.annexia.org>2009-05-19 12:29:04 +0100
committerRichard Jones <rjones@trick.home.annexia.org>2009-05-19 12:29:04 +0100
commit7b309445d4e9f93088ca052469338c8e3ce8dcbf (patch)
treee74bd8870a2e06acea3b0b0ddc5849d2fd814af2 /src
parent4c7183285105fd74496133c059a093b78dbe7723 (diff)
downloadlibguestfs-7b309445d4e9f93088ca052469338c8e3ce8dcbf.tar.gz
libguestfs-7b309445d4e9f93088ca052469338c8e3ce8dcbf.tar.xz
libguestfs-7b309445d4e9f93088ca052469338c8e3ce8dcbf.zip
Skip 'zerofree' test if the command doesn't exist in the appliance.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/generator.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/generator.ml b/src/generator.ml
index 01a23095..e6199a42 100755
--- a/src/generator.ml
+++ b/src/generator.ml
@@ -1998,7 +1998,7 @@ This runs C<hexdump -C> on the given C<path>. The result is
the human-readable, canonical hex dump of the file.");
("zerofree", (RErr, [String "device"]), 97, [],
- [InitNone, Always, TestOutput (
+ [InitNone, Unless (env_is_true "SKIP_ZEROFREE"), TestOutput (
[["sfdisk"; "/dev/sda"; "0"; "0"; "0"; ","];
["mkfs"; "ext3"; "/dev/sda1"];
["mount"; "/dev/sda1"; "/"];