diff options
| author | Andrey Shinkevich | 2019-03-07 14:33:57 +0100 |
|---|---|---|
| committer | Kevin Wolf | 2019-03-08 12:26:45 +0100 |
| commit | ce090f656c44b357f6caf8f6000648744fbb655b (patch) | |
| tree | 9f146d68013719ce07aa5813190ca24f0ba403d9 /tests | |
| parent | qcow2: Default to 4KB for the qcow2 cache entry size (diff) | |
| download | qemu-ce090f656c44b357f6caf8f6000648744fbb655b.tar.gz qemu-ce090f656c44b357f6caf8f6000648744fbb655b.tar.xz qemu-ce090f656c44b357f6caf8f6000648744fbb655b.zip | |
iotests: open notrun files in text mode
Replace the binary mode with the default text one when *.notrun
files are opened for skipped tests. That change is made for the
compatibility with Python 3 which returns error otherwise.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/qemu-iotests/iotests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py index 3d15571688..46fad4ce81 100644 --- a/tests/qemu-iotests/iotests.py +++ b/tests/qemu-iotests/iotests.py @@ -712,7 +712,7 @@ def notrun(reason): # Each test in qemu-iotests has a number ("seq") seq = os.path.basename(sys.argv[0]) - open('%s/%s.notrun' % (output_dir, seq), 'wb').write(reason + '\n') + open('%s/%s.notrun' % (output_dir, seq), 'w').write(reason + '\n') print('%s not run: %s' % (seq, reason)) sys.exit(0) |
