summaryrefslogtreecommitdiffstats
path: root/regressions/tell-user-to-ignore-errors.sh
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2010-07-22 16:49:06 +0100
committerRichard Jones <rjones@redhat.com>2010-07-22 16:51:56 +0100
commite7ee6eebed6ee3a5b56c0482ba2770e697d8febc (patch)
treec34f62c1340d925a2fd210ec63884d1dcb4f56d1 /regressions/tell-user-to-ignore-errors.sh
parent945e569db64ab2608b21feba0aa94044c9835ac3 (diff)
downloadlibguestfs-e7ee6eebed6ee3a5b56c0482ba2770e697d8febc.tar.gz
libguestfs-e7ee6eebed6ee3a5b56c0482ba2770e697d8febc.tar.xz
libguestfs-e7ee6eebed6ee3a5b56c0482ba2770e697d8febc.zip
regressions: Don't print misleading 'Expect error ...' lines.
Some tests in the regressions directory deliberately print error messages. As long as they still PASS, this is OK. However these tests also printed some misleading messages about what error to expect. Since error messages were slightly different across distros, these messages were not accurate. Therefore remove these messages, and replace with a general message before all tests telling users not to worry about errors from the tests as long as the tests don't fail.
Diffstat (limited to 'regressions/tell-user-to-ignore-errors.sh')
-rwxr-xr-xregressions/tell-user-to-ignore-errors.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/regressions/tell-user-to-ignore-errors.sh b/regressions/tell-user-to-ignore-errors.sh
new file mode 100755
index 00000000..b17bf755
--- /dev/null
+++ b/regressions/tell-user-to-ignore-errors.sh
@@ -0,0 +1,26 @@
+#!/bin/bash -
+# libguestfs
+# Copyright (C) 2010 Red Hat Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+echo
+echo '*****'
+echo
+echo 'Some of these tests print error messages. You can ignore'
+echo 'these error messages as long as the tests print "PASS".'
+echo
+echo '*****'
+echo