test/py: tpm2: Skip tpm pytest based on env variable
authorT Karthik Reddy <t.karthik.reddy@xilinx.com>
Fri, 23 Jul 2021 12:18:26 +0000 (06:18 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 24 Sep 2021 16:09:46 +0000 (12:09 -0400)
commit8870daaa25feee6ab73ec2e52f731a19131cc314
treee8654975ca965cbde03becbfca8f653193459cfc
parentd7ac865b983ca42d242295bf8477025461983416
test/py: tpm2: Skip tpm pytest based on env variable

Tpm test cases relies on tpm device setup. Provide an environment
variable "env__tpm_device_test_skip = True" to skip the test case
if tpm device is not present.
Only needed will have to add variable to the py-test framework.
Test runs successfully even this variable is absent.

Signed-off-by: T Karthik Reddy <t.karthik.reddy@xilinx.com>
Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
test/py/tests/test_tpm2.py