From 6bb5a840f036957fdea93c647c52c4f33a12fc97 Mon Sep 17 00:00:00 2001 From: Athmane Madjoudj Date: Aug 31 2011 08:24:28 +0000 Subject: Make centos default repos test output look like the others tests --- diff --git a/tests/0_common/000_centos_default_repos.py b/tests/0_common/000_centos_default_repos.py index d6c3a7f..06c9d13 100755 --- a/tests/0_common/000_centos_default_repos.py +++ b/tests/0_common/000_centos_default_repos.py @@ -5,15 +5,17 @@ import yum import sys +import datetime yb = yum.YumBase() centos_default_repos = ['base','extras','updates'] -print "Check if non default repo is enabled" +now = lambda: datetime.datetime.today().strftime("%c") +print "[+] %s -> Check if non default repo is enabled" % now() for repo in yb.repos.listEnabled(): if not repo.id in centos_default_repos: print '%s is enabled, should be disabled at this stage' % repo.id - print '-> FAIL' + print '[+] %s -> FAIL' % now() sys.exit(1) -print '-> PASS' +print '[+] %s -> PASS' % now() sys.exit(0)