---
tests/rats_install/install.py | 16 ++++++++--------
tests/rats_sanity/sanity.py | 14 +++++++-------
2 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/tests/rats_install/install.py b/tests/rats_install/install.py
index 923d089..5865e03 100755
--- a/tests/rats_install/install.py
+++ b/tests/rats_install/install.py
@@ -1,6 +1,6 @@
#!/usr/bin/python
# Rawhide Acceptance Test Suite - install testing
-#
+#
# basic usage: ./install.py treeurl
#
# Copyright 2009, Red Hat, Inc.
@@ -45,14 +45,14 @@ def installer_image_test(arch):
print "Failed to download .treeinfo: %s" % str(e)
return False
c.read(treeinfo)
-
- # 2. confirm that the arch listed in the [general] section is correct
+
+ # 2. confirm that the arch listed in the [general] section is correct
util.check("[general] section in .treeinfo",
c.has_section('general'))
util.check("arch = %s in [general]" % arch,
c.get('general','arch') == arch)
timestamp = float(c.get('general','timestamp'))
-
+
# 3. confirm that the files listed in the [images-$ARCH] section are present
- # and non-empty
+ # and non-empty
img_s = 'images-%s' % arch
util.check("[%s] section" % img_s, c.has_section(img_s))
util.check("kernel", c.has_option(img_s,'kernel'))
@@ -66,13 +66,13 @@ def installer_image_test(arch):
relpath = c.get('stage2','mainimage')
print "stage2 mainimage: %s" % os.path.basename(relpath)
fetchlist.append(relpath)
-
- # 5. confirm that the listed images are present and non-empty
+
+ # 5. confirm that the listed images are present and non-empty
for relpath in fetchlist:
loc = util.simplegrab(relpath)
util.check("%s non-empty" % os.path.basename(relpath),
util.nonempty(loc))
localfile[relpath] = loc
-
+
# 6. check that each of the listed files matches the checksum specified in
# the [checksum] section
util.check("[checksum] section", c.has_section('checksums'))
diff --git a/tests/rats_sanity/sanity.py b/tests/rats_sanity/sanity.py
index 40d226e..bf408d1 100755
--- a/tests/rats_sanity/sanity.py
+++ b/tests/rats_sanity/sanity.py
@@ -1,6 +1,6 @@
#!/usr/bin/python
# Rawhide Acceptance Test Suite - repo sanity testing
-#
+#
# basic usage: ./sanity.py treeurl
#
# Copyright 2009, Red Hat, Inc.
@@ -131,9 +131,9 @@ def critpath_closure_test(start_list):
name_list.remove(name)
# TODO this isn't coming out right for i386
- print "%u packages in critical path (+%u multiarch)" % (len(name_list),
+ print "%u packages in critical path (+%u multiarch)" % (len(name_list),
len(pkg_list)-len(name_list))
- print "%u rejected package names: %s" % (len(skipped_list),
+ print "%u rejected package names: %s" % (len(skipped_list),
" ".join(skipped_list))
return pkg_list
@@ -166,13 +166,13 @@ if __name__ == '__main__':
my.add_enable_repo('rats-repo-%s' % opt.arch, baseurls=[baseuri])
#
https://fedoraproject.org/wiki/QA:Rawhide_Acceptance_Test_Plan#Repo_Sanity_2
-
+
print "== repodata validity test =="
util.test("repodata", repodata_validity_test())
print "\n== comps validity test =="
util.test("comps", comps_validity_test())
-
+
(maj, min, sub) = yum.__version_info__
if (maj < 3 or min < 2 or sub < 24) and opt.arch != util.get_basearch():
print "\nWARNING: yum < 3.2.24 may be unable to depsolve other
arches."
@@ -185,8 +185,8 @@ if __name__ == '__main__':
namelist = set([p.name.encode('utf8') for p in critpath_pkgs])
util.write_keyval("critpath_count", len(namelist))
util.writelog("critpath.log", "\n".join(sorted(namelist)))
-
+
print "\n== critical path integrity test =="
util.test("critpath_integrity", critpath_integrity_test(critpath_pkgs))
-
+
print "\n== testing complete =="
--
1.6.6.1