1
0
mirror of https://github.com/elisspace/autopsy.git synced 2026-09-03 22:39:56 +00:00

Merge pull request #3758 from zhhl/3827-updateTestScript

3827: Update regression.py to take care of the new platform structure.
This commit is contained in:
Richard Cordovano
2018-05-11 11:35:38 -04:00
committed by GitHub

View File

@@ -468,9 +468,11 @@ class TestRunner(object):
# if need autopsyPlatform setup
if len(test_data.main_config.autopsyPlatform) > 0:
test_data.ant.append("-Dnbplatform.Autopsy_" + autopsyVersion + ".netbeans.dest.dir=" + test_data.main_config.autopsyPlatform)
test_data.ant.append("-Dnbplatform.default.harness.dir=" + test_data.main_config.autopsyPlatform + "/harness")
test_data.ant.append("-Dnbplatform.Autopsy_" + autopsyVersion + ".harness.dir=" + test_data.main_config.autopsyPlatform + "/harness")
platformPath = os.path.join(test_data.main_config.autopsyPlatform, "autopsy-" + autopsyVersion)
harnessDir = os.path.join(platformPath, "harness")
test_data.ant.append("-Dnbplatform.Autopsy_" + autopsyVersion + ".netbeans.dest.dir=" + platformPath)
test_data.ant.append("-Dnbplatform.default.harness.dir=" + harnessDir)
test_data.ant.append("-Dnbplatform.Autopsy_" + autopsyVersion + ".harness.dir=" + harnessDir)
Errors.print_out("Ingesting Image:\n" + test_data.image_file + "\n")
Errors.print_out("CMD: " + " ".join(test_data.ant))