From b1617fa51ea81ab562af036a62a9b1404db14096 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Thu, 28 Apr 2016 10:39:28 -0400 Subject: [PATCH] Travis: move temp dir to /tmp --- gramps/plugins/test/test_reports.py | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/gramps/plugins/test/test_reports.py b/gramps/plugins/test/test_reports.py index a413118cd..a85499b71 100644 --- a/gramps/plugins/test/test_reports.py +++ b/gramps/plugins/test/test_reports.py @@ -127,7 +127,7 @@ def report_contains(text): elif os.path.isfile(filename): os.remove(filename) else: - raise Exception("can't delete: " + filename) + raise Exception("can't find '%s' in order to delete it" % filename) else: os.remove(report_name + "." + ext) return text in contents @@ -144,7 +144,7 @@ def err_does_not_contain(text): elif os.path.isfile(filename): os.remove(filename) else: - raise Exception("can't delete: " + filename) + raise Exception("can't find '%s' in order to delete it" % filename) else: os.remove(report_name + "." + ext) return text not in err @@ -157,15 +157,8 @@ reports.addtest(TestDynamic, "tag_report", reports.addtest(TestDynamic, "navwebpage", err_does_not_contain("Failed to write report."), - ["temp/download.html", - "temp/individuals.html", - "temp/places.html", - "temp/surnames_count.html", - "temp/index.html", - "temp/media.html", - "temp/sources.html", - "temp/thumbnails.html"], - off="html", target="temp") + ["/tmp/NAVWEB"], + off="html", target="/tmp/NAVWEB") ### Three hashes: capture out/err seems to conflict with Travis/nose proxy: