Commit 83664fb0 authored by Matt Travers's avatar Matt Travers

ENH: logging in INFO label is clearer than a simple I label

parent c65d6192
......@@ -43,7 +43,7 @@ use Socket;
#
sub info {
my ($output) = @_;
print "I: ${output}\n";
print "INFO: ${output}\n";
}
# Function gets the page contents of the provided URL.
......@@ -80,7 +80,7 @@ sub get_www_content {
# Function to run apt-get update
sub run_apt_get_update {
info "Refreshing apt cache ...";
info "Refreshing apt cache";
if (qx!grep ubuntu /etc/os-release!) {
print qx/apt-get update --no-allow-insecure-repositories/;
} else {
......@@ -197,7 +197,7 @@ sub get_sources {
run_apt_get_update();
@lines = split /\n/, qx/apt-cache policy/;
}
info "Discovering installed repository sources ...";
info "Discovering installed repository sources";
for my $i (0 .. $#lines) {
if ($lines[$i] =~ /(http\S+)\s+([\w-\/]+)\/([\w\-]+)/) {
my $url = $1;
......
......@@ -153,7 +153,7 @@ assert_line_in_file "neurodebian.sources.list" "deb http://neuro.debian.net/debi
assert_line_in_file "sources.list" "deb http://deb.debian.org/debian jessie main"
assert_line_in_file "sources.list" "deb http://deb.debian.org/debian jessie-updates main"
assert_line_in_file "sources.list" "deb http://security.debian.org" "partial_match"
assert_line_in_file "stdout" 'I: WARNING: User specified time (20280827T000000Z) later than latest snapshot available' "partial_match"
assert_line_in_file "stdout" 'INFO: WARNING: User specified time (20280827T000000Z) later than latest snapshot available' "partial_match"
test_teardown
echo "[ Test Ubuntu release ]"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment