X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=installcheck%2Ftaper.pl;fp=installcheck%2Ftaper.pl;h=9e56234aa66c2c6df1d1eb2f0f8aa16812f2f781;hb=949b8910a5e23c4285d0b1aedacfc82a14dc97a5;hp=17a63e437d75a42d5f33527fddfc8cd754f9ff30;hpb=c6f0a88c567f8536c498f554285aed1f8150da18;p=debian%2Famanda diff --git a/installcheck/taper.pl b/installcheck/taper.pl index 17a63e4..9e56234 100644 --- a/installcheck/taper.pl +++ b/installcheck/taper.pl @@ -1,4 +1,4 @@ -# Copyright (c) 2009, 2010 Zmanda, Inc. All Rights Reserved. +# Copyright (c) 2009-2012 Zmanda, Inc. All Rights Reserved. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License version 2 as published @@ -643,7 +643,7 @@ taper_cmd("START-SCAN worker0 $handle"); taper_cmd("NEW-TAPE worker0 $handle"); like(taper_reply, qr/^NEW-TAPE $handle TESTCONF01$/, "got proper NEW-TAPE worker0 $handle") or die; -like(taper_reply, qr/^PARTIAL $handle INPUT-GOOD TAPE-ERROR "\[sec [\d.]+ bytes 0 kps [\d.]+\]" "" "No space left on device, splitting not enabled"$/, +like(taper_reply, qr/^PARTIAL $handle INPUT-GOOD TAPE-ERROR "\[sec [\d.]+ bytes 0 kps [\d.]+\]" "" "No space left on device: more than MAX_VOLUME_USAGE bytes written, splitting not enabled"$/, "got PARTIAL") or die; # retry on the next tape $handle = "11-88899"; @@ -671,7 +671,7 @@ check_logs([ qr(^INFO taper Slot 1 without label can be labeled$), qr(^START taper datestamp $datestamp label TESTCONF01 tape 1$), qr(^PARTPARTIAL taper TESTCONF01 1 localhost /var/log $datestamp 1/-1 0 \[sec [\d.]+ bytes 983040 kps [\d.]+\] "No space left on device"$), - qr(^PARTIAL taper localhost /var/log $datestamp 1 0 \[sec [\d.]+ bytes 0 kps [\d.]+\] "No space left on device, splitting not enabled"$), + qr(^PARTIAL taper localhost /var/log $datestamp 1 0 \[sec [\d.]+ bytes 0 kps [\d.]+\] "No space left on device: more than MAX_VOLUME_USAGE bytes written, splitting not enabled"$), qr(^INFO taper tape TESTCONF01 kb 0 fm 1 \[OK\]$), qr(^INFO taper Slot 2 without label can be labeled$), qr(^START taper datestamp $datestamp label TESTCONF02 tape 2$), @@ -1201,7 +1201,7 @@ taper_cmd("START-SCAN worker0 $handle"); taper_cmd("NEW-TAPE worker0 $handle"); like(taper_reply, qr/^NEW-TAPE $handle TESTCONF01$/, "got proper NEW-TAPE worker0 $handle") or die; -like(taper_reply, qr/^PARTIAL $handle INPUT-GOOD TAPE-ERROR "\[sec [\d.]+ bytes \d* kps [\d.]+ orig-kb 1612\]" "" "No space left on device, splitting not enabled"$/, +like(taper_reply, qr/^PARTIAL $handle INPUT-GOOD TAPE-ERROR "\[sec [\d.]+ bytes \d* kps [\d.]+ orig-kb 1612\]" "" "No space left on device: more than MAX_VOLUME_USAGE bytes written, splitting not enabled"$/, "got PARTIAL for filenum 1") or die; taper_cmd("QUIT"); wait_for_exit(); @@ -1210,7 +1210,7 @@ check_logs([ qr(^INFO taper Slot 1 without label can be labeled$), qr(^START taper datestamp $datestamp label TESTCONF01 tape 1$), qr(^PARTPARTIAL taper TESTCONF01 1 localhost /usr $datestamp 1/-1 0 \[sec [\d.]+ bytes 983040 kps [\d.]+ orig-kb 1612\] \"No space left on device\"$), - qr(^PARTIAL taper localhost /usr $datestamp 1 0 \[sec [\d.]+ bytes 0 kps [\d.]+ orig-kb 1612\] "No space left on device, splitting not enabled"$), + qr(^PARTIAL taper localhost /usr $datestamp 1 0 \[sec [\d.]+ bytes 0 kps [\d.]+ orig-kb 1612\] "No space left on device: more than MAX_VOLUME_USAGE bytes written, splitting not enabled"$), qr(^INFO taper tape TESTCONF01 kb 0 fm 1 \[OK\]$), ], "without LEOM and without allow-split logged correctly"); cleanup_log();