search for: check_output

Displaying 17 results from an estimated 17 matches for "check_output".

2018 Jun 15
1
[PATCH v2] lib: Convert all drive socket parameters to an absolute path (RHBZ#1588451).
...s/test-qemu-drive.sh index 19dd60a2f..181f21401 100755 --- a/tests/disks/test-qemu-drive.sh +++ b/tests/disks/test-qemu-drive.sh @@ -43,6 +43,8 @@ function fail () rm -f "$DEBUG_QEMU_FILE" +rm -f test-qemu-drive.sock + # Ceph (RBD). guestfish <<EOF ||: @@ -111,13 +113,18 @@ check_output grep -sq -- '-drive file=nbd:1.2.3.4:1234,' "$DEBUG_QEMU_FILE" || fail rm "$DEBUG_QEMU_FILE" -guestfish <<EOF ||: - add "" "format:raw" "protocol:nbd" "server:unix:/socket" +# This test requires Perl to create the socket...
2016 Sep 22
1
[PATCH v2] libvirt: read disk paths from pools (RHBZ#1366049)
...ND=direct export LIBGUESTFS_HV="${abs_srcdir}/debug-qemu.sh" export DEBUG_QEMU_FILE="${abs_builddir}/test-qemu-drive-libvirt.out" +# Setup the fake pool. +pool_dir=tmp +rm -rf "$pool_dir" +mkdir "$pool_dir" +touch "$pool_dir/in-pool" + function check_output () { if [ ! -f "$DEBUG_QEMU_FILE" ]; then @@ -104,8 +110,18 @@ check_output grep -sq -- '-drive file=sheepdog:volume,' "$DEBUG_QEMU_FILE" || fail rm "$DEBUG_QEMU_FILE" +# Local, stored in a pool. + +$guestfish -d pool1 run ||: +check_output +grep -sq...
2014 Jan 23
7
[PATCH 0/7] Various fixes for Ceph drives and parsing libvirt XML.
Miscellaneous fixes to: - Handling of Ceph drives now works end-to-end (RHBZ#1026688). - In particular, you can now use rbd:/// URIs in guestfish (and they work). - Parse Ceph & NBD network drives from libvirt XML correctly, so that existing domains with Ceph/NBD drives can be added (eg. using guestfish -d option). - Add more testing of the above.
2016 Jan 28
1
[PATCH] python: stop using parens-less print in tests
...domain (%s)" % domname -print "temporary domain %s is running" % domname +print ("temporary domain %s is running" % domname) # Libvirt should have labelled the disk. -print "before starting libguestfs" +print ("before starting libguestfs") before = check_output (["ls", "-Z", filename]) -print "disk label = %s" % before +print ("disk label = %s" % before) # Now see if we can open the domain with libguestfs without # disturbing the label. @@ -101,9 +101,9 @@ if r != 1: raise "unexpected return value from...
2014 Mar 03
7
[PATCH 1/4] More fixes for situations where ocamlopt is not available
- run bindtests.opt only if available - use ocamlc -custom - Don't try to install native code if it hasn't been built (Thanks to Olaf Hering) --- mllib/Makefile.am | 2 +- ocaml/Makefile.am | 7 ++++++- ocaml/examples/Makefile.am | 11 ++++------- ocaml/run-bindtests | 2 ++ 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/mllib/Makefile.am
2016 Feb 22
3
[PATCH 1/3] python: tests: refactor to use unittest's discovery
...m; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -# Test that SELinux relabelling code doesn't regress. -# See: https://bugzilla.redhat.com/912499#c10 -# https://bugzilla.redhat.com/1075164#c7 - -from subprocess import check_output -import unittest -import random -import string -import re -import os -import platform -import guestfs - -try: - import libvirt -except: - print ("skipping test: could not import python-libvirt") - exit (77) - -# If the backend is not libvirt, skip the test. -backend = guestfs.Gue...
2015 Jan 22
5
Ubuntu delta against 4.5.0-1 in experimental for disussion
...e in fnames: + if fname.startswith("userdata"): + wh, domid, uuid_string, userdata_userid = fname.split(".") + if userdata_userid == "xl": + domid_list.append(domid) + + if __name__ == '__main__': - p = subprocess.check_output(('xen', 'list', '-l')) - if p[0] == '(': - d = DataSXP(p) - else: - d = DataJSON(p) - d(sys.stdout) + domid_list = [] + + os.path.walk("/var/lib/xen", UserdataWalker, domid_list) + for domid in domid_list: + p = subpro...
2020 Feb 11
2
[PATCH v2] lib: add support for disks with 4096 bytes sector size
...n 1 1 3 + +guestfish="guestfish -c test://$abs_builddir/test-qemu-drive-libvirt.xml" + +export LIBGUESTFS_BACKEND=direct +export LIBGUESTFS_HV="${abs_srcdir}/debug-qemu.sh" +export DEBUG_QEMU_FILE="${abs_builddir}/test-qemu-drive-with-blocksize-libvirt.out" + +function check_output () +{ + if [ ! -f "$DEBUG_QEMU_FILE" ]; then + echo "$0: guestfish command failed, see previous error messages" + exit 1 + fi +} + +function fail () +{ + echo "$0: Test $1 failed. Command line output was:" + cat "$DEBUG_QEMU_FILE" +...
2012 Dec 04
5
[LLVMdev] Minimum Python Version
On Tue, Dec 4, 2012, at 03:23 AM, Sean Silva wrote: > > several people already asked what are the concrete benefits of breaking support for end-of-life python versions? > > Generally I think the only compelling argument is "for a given level > of maintenance effort, you either sacrifice support for old-dead > versions, or new versions", and obviously new versions
2020 Feb 10
1
[PATCH] lib: allow to specify physical/logical block size for disks
...n 1 1 3 + +guestfish="guestfish -c test://$abs_builddir/test-qemu-drive-libvirt.xml" + +export LIBGUESTFS_BACKEND=direct +export LIBGUESTFS_HV="${abs_srcdir}/debug-qemu.sh" +export DEBUG_QEMU_FILE="${abs_builddir}/test-qemu-drive-with-blocksize-libvirt.out" + +function check_output () +{ + if [ ! -f "$DEBUG_QEMU_FILE" ]; then + echo "$0: guestfish command failed, see previous error messages" + exit 1 + fi +} + +function fail () +{ + echo "$0: Test $1 failed. Command line output was:" + cat "$DEBUG_QEMU_FILE" +...
2016 May 04
9
[PATCH 0/8] python: PEP 8 fixes
Hi, this series cleans up the Python sources, either static or generated, including also tests, to make them PEP 8 compliant; see https://www.python.org/dev/peps/pep-0008/ and tools like pep8. Almost all the issues reported by pep8 are fixed, reducing the issues from 3818 to 7. The changes should have no effect on the actual code, while it will help Python users with consistency with other
2020 May 20
14
10.0.1-rc1 release has been tagged
Hi, I have just tagged the 10.0.1-rc1 release. Testers can begin testing and uploading binaries. If you still want to get a fix into the 10.0.1 release, you still have about a month to get your fix in. To request a patch be backported to the release/10.x branch, file a bug and mark it as a blocker of the release-10.0.1 meta bug. -Tom
2018 Jan 17
12
[6.0.0 Release] Release Candidate 1 tagged
Dear testers, Start your engines; 6.0.0-rc1 was just tagged. I know there are still open blockers and it's early in the process in a way, but I'd like to find out where we are. Please run the test script, let me know the results, and upload binaries. Thanks, Hans
2020 Jul 06
2
failed to compile samba-4.12.5
...gt;&1 | python3 /home/alex/workspace/samba-4.12.5/selftest/filter-subunit --fail-on-empty --prefix="samba.tests.blackbox.ndrdump." --suffix="(none)" ERROR: Testsuite[samba.tests.blackbox.ndrdump] REASON: Exit code was 1 [4(36)/2659 at 3m20s, 1 errors] samba.tests.blackbox.check_output [5(40)/2659 at 3m20s, 1 errors] ldb.python /home/alex/workspace/samba-4.12.5/selftest/target/dns_hub.py:115: SyntaxWarning: "is" with a literal. Did you mean "=="? if forwarder is 'ignore': /home/alex/workspace/samba-4.12.5/selftest/target/dns_hub.py:117: SyntaxWarning...
2018 Dec 06
3
Build error while upgrading samba 4.9.3
...ge.py symlink: samba/tests/auth_log_samlogon.py -> python/samba/tests/auth_log_samlogon.py symlink: samba/tests/blackbox/__init__.py -> python/samba/tests/blackbox/__init__.py symlink: samba/tests/blackbox/bug13653.py -> python/samba/tests/blackbox/bug13653.py symlink: samba/tests/blackbox/check_output.py -> python/samba/tests/blackbox/check_output.py symlink: samba/tests/blackbox/ndrdump.py -> python/samba/tests/blackbox/ndrdump.py symlink: samba/tests/blackbox/samba_dnsupdate.py -> python/samba/tests/blackbox/samba_dnsupdate.py symlink: samba/tests/blackbox/smbcontrol.py -> python/s...
2014 Sep 16
5
[PATCH 0/3] tests: Introduce test harness for running tests.
These are my thoughts on adding a test harness to run tests instead of using automake. The aim of this exercise is to allow us to run the full test suite on an installed copy of libguestfs. Another aim is to allow us to work around all the limitations and problems of automake. The first patch makes an observation that since the ./run script sets up $PATH to contain all the directories
2017 Feb 20
3
[PATCH 0/3] tests: Define common test functions.
Previously I posted a work-in-progress preview of this patch series: https://www.redhat.com/archives/libguestfs/2017-February/msg00224.html This is the finished version that updates all of the shell-script based tests. It passes 'make check', 'make check-direct' and 'make check-slow'. Rich.