Skip to content
Snippets Groups Projects
Commit c71d9c21 authored by Zack Galbreath's avatar Zack Galbreath
Browse files

get the baseline file's path from the command line

This is an improvement over our previous approach of constructing
the path to the baseilne file from the testing directory.

Change-Id: I2dc0e1354c381ff770475ff2ab7f561b0122e582
parent 81534288
No related branches found
No related tags found
No related merge requests found
......@@ -49,9 +49,10 @@ int TestPhyloXMLTreeWriter(int argc, char* argv[])
writer->IgnoreArray("node weight");
writer->Update();
// get the full path to the baseline file
char* baselineFile = vtkTestUtilities::ExpandDataFileName(argc, argv,
"../IO/Infovis/Testing/Data/Baseline/TestPhyloXMLTreeWriter.xml");
// get the full path to the baseline file. This is specified as the -V
// argument to the test.
char* baselineFile = vtkTestUtilities::GetArgOrEnvOrDefault("-V", argc, argv,
"", "");
// compare the baseline to the test file & return accordingly.
int result = EXIT_SUCCESS;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment