Skip to content

`tap run` ignores the csv external-parameter file if the CSV plugin is missing

When the CSV plugin is not installed, the test plan is executed even if the parameter file is not processed, leading to the wrong result:

$ tap run parameter.TapPlan -e $PWD/parameter.csv

OpenTAP Command Line Interface 9.13.0+a5998b9e

Loaded test plan from /home/user/parameter.TapPlan [37.9 ms]
Loading external parameters from '/home/user/parameter.csv'.
No installed plugins provide loading of external parameters from '.csv' 
files. No external parameters loaded from '/home/user/parameter.csv'.
Test Plan: parameter
-----------------------------------------------------------------
Starting TestPlan 'parameter' on 04/07/2021 17:29:37, 1 of 1 TestSteps 
enabled.
"Log Output" started.
Hello world!
"Log Output" completed. [5.62 ms]
----- Summary of test plan started 04/07/2021 17:29:37 -----
  Log Output                                       5.62 ms
------------------------------------------------------------
------- Test plan completed successfully in 69.7 ms --------
$ echo $?
0

The correct behavior, when the CSV plugin is installed, is instead:

$ tap run parameter.TapPlan -e $PWD/parameter.csv
OpenTAP Command Line Interface 9.13.0+a5998b9e

Loaded test plan from /home/user/parameter.TapPlan [38.3 ms]
Loading external parameters from '/home/user/parameter.csv'.
Test Plan: parameter
-----------------------------------------------------------------
Starting TestPlan 'parameter' on 04/07/2021 17:38:05, 1 of 1 TestSteps 
enabled.
"Log Output" started.
*xxx*
"Log Output" completed. [5.69 ms]
----- Summary of test plan started 04/07/2021 17:38:05 -----
  Log Output                                       5.69 ms
------------------------------------------------------------
------- Test plan completed successfully in 63.4 ms --------
$ echo $?
0