tests: treat all truthy env vars the same way 78/20478/7
authorPaul Vinciguerra <pvinci@vinciconsulting.com>
Wed, 3 Jul 2019 12:38:38 +0000 (08:38 -0400)
committerNeale Ranns <nranns@cisco.com>
Tue, 9 Jul 2019 07:16:16 +0000 (07:16 +0000)
commit0cbc71d783b9ad385e3d9efba181b75e37265318
tree598afa71c693f616381dd21cf10e298a0363647e
parenta089ae1294c8a49555fd95a905e2caa04cb7f900
tests: treat all truthy env vars the same way

Introduce a new class, that returns the truthiness of a env var.
Since an environment variable is just a string, it would normally
be true if not unset. The new class returns true when the env var is
set to a string that would be considered true.

Type: test
Depends-on: https://gerrit.fd.io/r/20484

Change-Id: I90ef010156f6fec246bde5c0e208ced1869b180f
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
test/framework.py
test/run_tests.py