From c71703b5668c534d24ee8851150e16d4d9786892 Mon Sep 17 00:00:00 2001 From: Leonardo Di Donato Date: Thu, 18 Jul 2019 15:26:04 +0000 Subject: [PATCH] update(test): better handling of build type Signed-off-by: Leonardo Di Donato --- test/falco_test.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/falco_test.py b/test/falco_test.py index 782e8aeb..689a7685 100644 --- a/test/falco_test.py +++ b/test/falco_test.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python + #!/usr/bin/env python # # Copyright (C) 2016-2018 Draios Inc dba Sysdig. # @@ -34,9 +34,10 @@ class FalcoTest(Test): """ Load the sysdig kernel module if not already loaded. """ - build_type = "Release" + build_type = "release" if 'BUILD_TYPE' in os.environ: - build_type = os.environ['BUILD_TYPE'] + build_type = os.environ['BUILD_TYPE'].lower() + build_type = "debug" if build_type == "debug" else "release" build_dir = os.path.join('/build', build_type) self.falcodir = self.params.get('falcodir', '/', default=os.path.join(self.basedir, build_dir))