[Pkg-libvirt-commits] [libguestfs] 127/266: tests: make the scratch disk used for scratch much larger

Hilko Bengen bengen at moszumanska.debian.org
Fri Oct 3 14:41:51 UTC 2014


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to annotated tag debian/1%1.27.35-1
in repository libguestfs.

commit 4a4256b8075c69aa6da4b0139e0e3cc2a1291762
Author: Pino Toscano <ptoscano at redhat.com>
Date:   Tue Aug 19 14:25:49 2014 +0200

    tests: make the scratch disk used for scratch much larger
    
    50M can be not enough when uploading various copies of unstripped
    static binaries from the system, which can fill up such a small disk.
---
 generator/actions.ml     | 2 +-
 src/guestfs.pod          | 2 +-
 tests/c-api/tests-main.c | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/generator/actions.ml b/generator/actions.ml
index 9570d9b..245da6f 100644
--- a/generator/actions.ml
+++ b/generator/actions.ml
@@ -9607,7 +9607,7 @@ device is stopped, but it is not destroyed or zeroed." };
           "check_hash (ret, \"PART_ENTRY_NUMBER\", \"1\") == 0 && "^
           "check_hash (ret, \"PART_ENTRY_TYPE\", \"0x83\") == 0 && "^
           "check_hash (ret, \"PART_ENTRY_OFFSET\", \"128\") == 0 && "^
-          "check_hash (ret, \"PART_ENTRY_SIZE\", \"102145\") == 0"), [];
+          "check_hash (ret, \"PART_ENTRY_SIZE\", \"1023745\") == 0"), [];
     ];
     shortdesc = "print block device attributes";
     longdesc = "\
diff --git a/src/guestfs.pod b/src/guestfs.pod
index f5a08fb..a8350b1 100644
--- a/src/guestfs.pod
+++ b/src/guestfs.pod
@@ -3944,7 +3944,7 @@ The test environment has 4 block devices:
 
 General block device for testing.
 
-=item C</dev/sdb> 50MB
+=item C</dev/sdb> 500MB
 
 C</dev/sdb1> is an ext2 filesystem used for testing
 filesystem write operations.
diff --git a/tests/c-api/tests-main.c b/tests/c-api/tests-main.c
index e2e86f5..e81e15e 100644
--- a/tests/c-api/tests-main.c
+++ b/tests/c-api/tests-main.c
@@ -436,7 +436,7 @@ create_handle (void)
     exit (EXIT_FAILURE);
   }
 
-  if (guestfs_add_drive_scratch (g, 52428800, -1) == -1) {
+  if (guestfs_add_drive_scratch (g, 524288000, -1) == -1) {
     printf ("FAIL: guestfs_add_drive_scratch\n");
     exit (EXIT_FAILURE);
   }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list