162 (62516a0a18cd156d913dd625baca52c46743223b) 162 (21b43d004813ae71d964f74e59ff149bb480db73)
1#!/usr/bin/env bash
2#
3# Test case for specifying runtime options of the wrong type to some
4# block drivers
5#
6# Copyright (C) 2016 Red Hat, Inc.
7#
8# This program is free software; you can redistribute it and/or modify

--- 25 unchanged lines hidden (view full) ---

34}
35trap "_cleanup; exit \$status" 0 1 2 3 15
36
37# get standard environment, filters and checks
38. ./common.rc
39. ./common.filter
40
41_supported_fmt generic
1#!/usr/bin/env bash
2#
3# Test case for specifying runtime options of the wrong type to some
4# block drivers
5#
6# Copyright (C) 2016 Red Hat, Inc.
7#
8# This program is free software; you can redistribute it and/or modify

--- 25 unchanged lines hidden (view full) ---

34}
35trap "_cleanup; exit \$status" 0 1 2 3 15
36
37# get standard environment, filters and checks
38. ./common.rc
39. ./common.filter
40
41_supported_fmt generic
42_require_drivers ssh
42
43
43test_ssh=$($QEMU_IMG --help | grep '^Supported formats:.* ssh\( \|$\)')
44[ "$test_ssh" = "" ] && _notrun "ssh support required"
45
46echo
47echo '=== NBD ==='
48# NBD expects all of its arguments to be strings
49
50# So this should not crash
51$QEMU_IMG info 'json:{"driver": "nbd", "host": 42}'
52
53# And this should not treat @port as if it had not been specified

--- 61 unchanged lines hidden ---
44echo
45echo '=== NBD ==='
46# NBD expects all of its arguments to be strings
47
48# So this should not crash
49$QEMU_IMG info 'json:{"driver": "nbd", "host": 42}'
50
51# And this should not treat @port as if it had not been specified

--- 61 unchanged lines hidden ---