def METHOD_NAME():
    """
    Abort the job and check if it's aborted successfully.
    """
    test.log.info("Check if the job can be aborted successfully")
    if utils_misc.wait_for(
            lambda: libvirt.check_blockjob(vm_name,
                                           dev, "progress", "100(.00)?"), 100):
        virsh.blockjob(vm_name, dev, options=' --pivot',
                       debug=True,
                       ignore_status=False)
    else:
        test.fail("Blockjob timeout in 100 sec.")
    test.log.info("TEST_STEP3: Check the output of 'blockjob --raw' "
                  "after aborting the job")
    result = virsh.blockjob(vm_name, dev, options=test_option,
                            debug=True,
                            ignore_status=False)
    if result.stdout_text.strip():
        test.fail("It should return empty after pivot, but get:%s",
                  result.stdout_text.strip())