Travis: move temp dir to /tmp
This commit is contained in:
@@ -127,7 +127,7 @@ def report_contains(text):
|
|||||||
elif os.path.isfile(filename):
|
elif os.path.isfile(filename):
|
||||||
os.remove(filename)
|
os.remove(filename)
|
||||||
else:
|
else:
|
||||||
raise Exception("can't delete: " + filename)
|
raise Exception("can't find '%s' in order to delete it" % filename)
|
||||||
else:
|
else:
|
||||||
os.remove(report_name + "." + ext)
|
os.remove(report_name + "." + ext)
|
||||||
return text in contents
|
return text in contents
|
||||||
@@ -144,7 +144,7 @@ def err_does_not_contain(text):
|
|||||||
elif os.path.isfile(filename):
|
elif os.path.isfile(filename):
|
||||||
os.remove(filename)
|
os.remove(filename)
|
||||||
else:
|
else:
|
||||||
raise Exception("can't delete: " + filename)
|
raise Exception("can't find '%s' in order to delete it" % filename)
|
||||||
else:
|
else:
|
||||||
os.remove(report_name + "." + ext)
|
os.remove(report_name + "." + ext)
|
||||||
return text not in err
|
return text not in err
|
||||||
@@ -157,15 +157,8 @@ reports.addtest(TestDynamic, "tag_report",
|
|||||||
|
|
||||||
reports.addtest(TestDynamic, "navwebpage",
|
reports.addtest(TestDynamic, "navwebpage",
|
||||||
err_does_not_contain("Failed to write report."),
|
err_does_not_contain("Failed to write report."),
|
||||||
["temp/download.html",
|
["/tmp/NAVWEB"],
|
||||||
"temp/individuals.html",
|
off="html", target="/tmp/NAVWEB")
|
||||||
"temp/places.html",
|
|
||||||
"temp/surnames_count.html",
|
|
||||||
"temp/index.html",
|
|
||||||
"temp/media.html",
|
|
||||||
"temp/sources.html",
|
|
||||||
"temp/thumbnails.html"],
|
|
||||||
off="html", target="temp")
|
|
||||||
|
|
||||||
### Three hashes: capture out/err seems to conflict with Travis/nose proxy:
|
### Three hashes: capture out/err seems to conflict with Travis/nose proxy:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user