mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-11 23:46:15 +00:00
3532: Write Output path to a text file instead of a html file.
This commit is contained in:
parent
bb1be88751
commit
d21202e528
@ -83,7 +83,7 @@ AUTOPSY_TEST_CASE = "AutopsyTestCase"
|
||||
Day = 0
|
||||
|
||||
# HTML file name for links of output directories
|
||||
OUTPUT_DIR_LINK_FILE="output_dir_link.html"
|
||||
OUTPUT_DIR_LINK_FILE="output_dir_link.txt"
|
||||
|
||||
def usage():
|
||||
print ("-f PATH single file")
|
||||
@ -878,20 +878,20 @@ class TestConfiguration(object):
|
||||
|
||||
os.makedirs(self.output_dir)
|
||||
|
||||
#write the output_dir to a html file
|
||||
#write the output_dir to a text file
|
||||
|
||||
linkFile = open(os.path.join(self.args.diff_files_output_folder, OUTPUT_DIR_LINK_FILE), "a")
|
||||
index = self.output_dir.find("\\")
|
||||
linkStr = "<a href=\"file://"
|
||||
linkStr = "file://"
|
||||
linkOutputDir = self.output_dir[index+2:].replace("//", "/").replace("\\\\", "\\")
|
||||
if index == 0:
|
||||
linkStr = linkStr + linkOutputDir
|
||||
else:
|
||||
linkStr = linkStr + socket.gethostname() + "\\" + linkOutputDir
|
||||
if self.testUserCase == "multi":
|
||||
linkStr = linkStr + "\">Enterprise Tests</a>"
|
||||
linkStr = "Enterprise Tests: " + linkStr
|
||||
else:
|
||||
linkStr = linkStr + "\">Standalone Tests</a>"
|
||||
linkStr = "Standalone Tests: " + linkStr
|
||||
linkFile.write(linkStr + "\n")
|
||||
linkFile.close()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user