229 (81781be3c99235a59c8efee6aecb3d81b500e838) | 229 (fff2388d5d9caecca6200455d0ab6d5e13f4e9bd) |
---|---|
1#!/bin/bash 2# 3# Test for force canceling a running blockjob that is paused in 4# an error state. 5# 6# Copyright (C) 2018 Red Hat, Inc. 7# 8# This program is free software; you can redistribute it and/or modify --- 67 unchanged lines hidden (view full) --- 76 'on-source-error': 'stop', 77 'on-target-error': 'stop' }}" \ 78 "JOB_STATUS_CHANGE.*pause" 79 80echo 81echo '=== Force cancel job paused in error state ===' 82echo 83 | 1#!/bin/bash 2# 3# Test for force canceling a running blockjob that is paused in 4# an error state. 5# 6# Copyright (C) 2018 Red Hat, Inc. 7# 8# This program is free software; you can redistribute it and/or modify --- 67 unchanged lines hidden (view full) --- 76 'on-source-error': 'stop', 77 'on-target-error': 'stop' }}" \ 78 "JOB_STATUS_CHANGE.*pause" 79 80echo 81echo '=== Force cancel job paused in error state ===' 82echo 83 |
84# Filter out BLOCK_JOB_ERROR events because they may or may not occur. 85# Cancelling the job means resuming it for a bit before it is actually 86# aborted, and in that time it may or may not re-encounter the error. |
|
84success_or_failure="y" _send_qemu_cmd $QEMU_HANDLE \ 85 "{'execute': 'block-job-cancel', 86 'arguments': { 'device': 'testdisk', 87 'force': true}}" \ | 87success_or_failure="y" _send_qemu_cmd $QEMU_HANDLE \ 88 "{'execute': 'block-job-cancel', 89 'arguments': { 'device': 'testdisk', 90 'force': true}}" \ |
88 "BLOCK_JOB_CANCELLED" "Assertion" | 91 "BLOCK_JOB_CANCELLED" "Assertion" \ 92 | grep -v '"BLOCK_JOB_ERROR"' |
89 90# success, all done 91echo "*** done" 92rm -f $seq.full 93status=0 | 93 94# success, all done 95echo "*** done" 96rm -f $seq.full 97status=0 |