mirror of
https://github.com/falcosecurity/falco.git
synced 2025-08-08 09:37:58 +00:00
update(test): better handling of build type
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
This commit is contained in:
parent
8400066ac8
commit
c71703b566
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# Copyright (C) 2016-2018 Draios Inc dba Sysdig.
|
# Copyright (C) 2016-2018 Draios Inc dba Sysdig.
|
||||||
#
|
#
|
||||||
@ -34,9 +34,10 @@ class FalcoTest(Test):
|
|||||||
"""
|
"""
|
||||||
Load the sysdig kernel module if not already loaded.
|
Load the sysdig kernel module if not already loaded.
|
||||||
"""
|
"""
|
||||||
build_type = "Release"
|
build_type = "release"
|
||||||
if 'BUILD_TYPE' in os.environ:
|
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)
|
build_dir = os.path.join('/build', build_type)
|
||||||
self.falcodir = self.params.get('falcodir', '/', default=os.path.join(self.basedir, build_dir))
|
self.falcodir = self.params.get('falcodir', '/', default=os.path.join(self.basedir, build_dir))
|
||||||
|
Loading…
Reference in New Issue
Block a user