Printer FriendlyEmail Article Link

How can I modify where my Avalanche TCL test results are stored?

Answer

Be default the test results are saved in the results folder as where the test was run from as specified in the first uncommented (#) line in following section of the test.tcl file:

#
   #
    # Download test results
    #
    set resultsDirectory [file join $testDirectory $testId "results"]
    SPI_AV::dputs STATUS -nonewline "Transferring Client Cluster Results"; flush stdout
    SPI_AV::ClusterController::GetClusteredTestResults $clientClusterID $testId [file join $resultsDirectory]
    SPI_AV::dputs STATUS " - done"
   
    SPI_AV::dputs STATUS -nonewline "Transferring Server Cluster Results"; flush stdout
    SPI_AV::ClusterController::GetClusteredTestResults $serverClusterID $testId [file join $resultsDirectory]
    SPI_AV::dputs STATUS " - done"

If you wanted to have the results written to another folder such as c:\tmp, you must first create that directory on your PC.  Next you must modify the test.tcl file to point to that directory as follows. ( Note that rather modifying the original line it was commented out and another line was inserted with desired target directory)

#
    # Download test results
    #
    #set resultsDirectory [file join $testDirectory $testId "results"]
    set resultsDirectory [file join "C:/tmp" $testId "results"]
    SPI_AV::dputs STATUS -nonewline "Transferring Client Cluster Results"; flush stdout
    SPI_AV::ClusterController::GetClusteredTestResults $clientClusterID $testId [file join $resultsDirectory]
    SPI_AV::dputs STATUS " - done"
   
    SPI_AV::dputs STATUS -nonewline "Transferring Server Cluster Results"; flush stdout
    SPI_AV::ClusterController::GetClusteredTestResults $serverClusterID $testId [file join $resultsDirectory]
    SPI_AV::dputs STATUS " - done"
   


Product : Avalanche,L4-7,Automation