From d7641357bb94b10482c2f4072adc23d2430243df Mon Sep 17 00:00:00 2001 From: Karanbir Singh Date: Aug 30 2011 23:30:05 +0000 Subject: when testing enabled repos, print the wrongly enabled one --- diff --git a/tests/0_common/000_centos_default_repos.py b/tests/0_common/000_centos_default_repos.py index ef02bc4..d6c3a7f 100755 --- a/tests/0_common/000_centos_default_repos.py +++ b/tests/0_common/000_centos_default_repos.py @@ -1,5 +1,6 @@ #!/usr/bin/python # Author: Athmane Madjoudj +# Karanbir Singh # Test default CentOS repos import yum @@ -10,6 +11,7 @@ centos_default_repos = ['base','extras','updates'] print "Check if non default repo is enabled" 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' sys.exit(1) print '-> PASS'