freebsd-ports/sysutils/osquery/files/patch-tools_tests_test__extensions.py
Ryan Steinmetz 6efaeef862 New port: sysutils/osquery:
osquery exposes an operating system as a high-performance relational database.
This allows you to write SQL-based queries to explore operating system data.
With osquery, SQL tables represent abstract concepts such as running
processes, loaded kernel modules, open network connections, browser plugins,
hardware events or file hashes.

WWW: https://osquery.io/

Sponsored by:	Beer from wxs@
2015-05-10 15:19:11 +00:00

15 lines
577 B
Python

--- tools/tests/test_extensions.py.orig 2015-05-05 00:16:41 UTC
+++ tools/tests/test_extensions.py
@@ -364,9 +364,11 @@ if __name__ == "__main__":
thrift_path = test_base.ARGS.build + "/generated/gen-py"
try:
sys.path.append(thrift_path)
+ sys.path.append(thrift_path + "/osquery")
from osquery import *
- except ImportError:
+ except ImportError as e:
print ("Cannot import osquery thrift API from %s" % (thrift_path))
+ print ("Exception: %s" % (str(e)))
print ("You must first run: make")
exit(1)