make test: fix logic for CACHE_OUTPUT option

Change-Id: I9938c0154c860913e27cecb18ec68f247943a2e6
Signed-off-by: Klement Sekera <ksekera@cisco.com>
This commit is contained in:
Klement Sekera
2017-11-07 03:19:16 +01:00
committed by Damjan Marion
parent beb85cc662
commit e178399942

View File

@ -222,7 +222,7 @@ class VppTestCase(unittest.TestCase):
try:
c = os.getenv("CACHE_OUTPUT", "1")
cls.cache_vpp_output = \
True if c.lower() in ("y", "yes", "1") else False
False if c.lower() in ("n", "no", "0") else True
except:
cls.cache_vpp_output = True
cls.set_debug_flags(d)