[Pkg-shadow-commits] r1775 - debian/trunk/tests/common
nekral-guest at alioth.debian.org
nekral-guest at alioth.debian.org
Mon Feb 11 19:47:54 UTC 2008
Author: nekral-guest
Date: 2008-02-11 19:47:53 +0000 (Mon, 11 Feb 2008)
New Revision: 1775
Modified:
debian/trunk/tests/common/compare_file.pl
Log:
Do not fail if the expected user is not present in the file, give an
useful warning.
Modified: debian/trunk/tests/common/compare_file.pl
===================================================================
--- debian/trunk/tests/common/compare_file.pl 2008-02-11 19:46:33 UTC (rev 1774)
+++ debian/trunk/tests/common/compare_file.pl 2008-02-11 19:47:53 UTC (rev 1775)
@@ -22,6 +22,9 @@
die "Wrong password: '$cryptpass'. Expected password: '$checkpass'\n"
if ($checkpass ne $cryptpass);
+ } else {
+ die "No user '$user' in ".$ARGV[1].".\n";
+ }
}
$tmp = $template;
@@ -40,6 +43,9 @@
die "Wrong password: '$cryptpass'. Expected password: '$checkpass'\n"
if ($checkpass ne $cryptpass);
+ } else {
+ die "No user '$user' in ".$ARGV[1].".\n";
+ }
}
More information about the Pkg-shadow-commits
mailing list