Nir Soffer
b7719bcad2
iotests: Make qemu_nbd_popen() a contextmanager
...
Instead of duplicating the code to wait until the server is ready and
remember to terminate the server and wait for it, make it possible to
use like this:
with qemu_nbd_popen('-k', sock, image):
# Access image via qemu-nbd socket...
Only test 264 used this helper, but I had to modify the output since it
did not consistently when starting and stopping qemu-nbd.
Signed-off-by: Nir Soffer <nsoffer@redhat.com>
Message-Id: <20200727215846.395443-3-nsoffer@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
2020-07-28 09:54:43 -05:00
..
2020-07-15 13:04:27 +01:00
2020-07-07 17:37:44 +01:00
2020-06-09 09:19:48 -07:00
2020-07-27 09:41:35 +01:00
2020-05-19 08:41:16 -07:00
2020-05-15 15:25:07 +01:00
2019-11-05 16:36:11 +01:00
2020-06-17 17:48:39 +01:00
2019-07-30 12:25:43 +02:00
2019-06-04 15:20:41 +02:00
2020-07-15 11:52:43 +01:00
2020-03-17 21:42:47 +01:00
2020-07-28 09:54:43 -05:00
2020-07-21 07:21:54 +02:00
2020-07-12 15:32:05 +01:00
2020-06-16 14:49:05 +01:00
2019-10-07 15:14:15 +02:00
2020-07-27 09:41:58 +01:00
2020-03-17 17:38:47 +00:00
2019-01-14 14:52:30 +00:00
2019-01-14 14:52:30 +00:00
2019-10-28 13:32:21 +01:00
2020-05-07 12:52:51 +01:00
2020-07-02 06:25:28 +02:00
2020-06-23 15:46:05 +01:00
2019-03-07 22:05:54 +01:00
2019-08-21 10:27:13 +02:00
2020-04-30 06:51:15 +02:00
2020-07-02 06:25:28 +02:00
2020-07-02 06:25:28 +02:00
2019-06-12 13:20:21 +02:00
2020-07-17 14:20:57 +02:00
2019-06-12 13:20:21 +02:00
2020-01-06 18:41:32 +04:00
2019-06-12 13:20:20 +02:00
2020-01-07 14:32:57 +00:00
2020-07-12 15:32:05 +01:00
2019-08-20 17:26:21 +02:00
2020-01-12 11:42:40 +01:00
2020-07-11 15:53:00 +01:00
2020-02-25 17:42:59 +00:00
2020-03-17 18:55:52 -04:00
2019-08-22 17:30:25 +04:00
2019-08-22 17:30:25 +04:00
2019-03-07 22:16:22 +01:00
2020-02-22 08:26:47 +00:00
2019-06-12 13:18:33 +02:00
2019-06-12 13:18:33 +02:00
2019-06-12 13:18:33 +02:00
2019-06-12 13:18:33 +02:00
2020-07-02 06:25:28 +02:00
2020-05-18 19:05:25 +02:00
2020-07-02 06:25:28 +02:00
2019-12-17 09:05:23 +01:00
2019-08-16 13:31:52 +02:00
2020-07-02 06:25:28 +02:00
2019-09-10 08:58:43 +02:00
2020-04-07 14:34:47 +02:00
2020-07-13 11:59:47 +04:00
2019-03-05 14:43:11 +01:00
2019-03-07 22:16:22 +01:00
2019-06-12 13:18:33 +02:00
2020-07-02 06:25:28 +02:00
2019-01-11 13:57:25 +01:00
2020-06-15 11:33:51 +01:00
2019-12-17 09:05:23 +01:00
2019-12-17 09:05:23 +01:00
2020-03-18 14:03:46 -04:00
2019-08-16 13:31:52 +02:00
2019-06-12 13:18:33 +02:00
2019-06-12 13:18:33 +02:00
2019-06-12 13:18:33 +02:00
2019-09-03 23:24:42 +02:00
2019-12-17 09:05:23 +01:00
2020-07-02 06:25:28 +02:00
2019-12-18 12:28:44 +01:00
2020-07-02 06:25:28 +02:00
2020-06-15 22:06:04 +02:00
2020-07-02 06:25:28 +02:00
2019-12-17 09:05:23 +01:00
2019-03-11 16:33:49 +01:00
2020-03-17 19:58:34 +01:00
2020-03-17 19:58:34 +01:00
2019-03-05 14:43:11 +01:00
2020-04-30 07:26:09 +02:00
2020-03-06 10:35:15 +00:00
2020-02-22 08:26:47 +00:00
2020-07-02 06:25:28 +02:00
2020-07-02 06:25:28 +02:00
2020-07-02 06:25:28 +02:00
2019-06-03 14:03:00 +02:00
2019-08-20 17:26:19 +02:00
2020-07-02 06:25:29 +02:00
2020-05-20 10:34:45 +01:00
2020-02-28 09:25:49 +01:00
2020-03-17 19:48:10 -04:00
2019-10-26 15:38:06 +02:00