]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard_v2: Add bin dir to PATH
authorSebastian Wagner <sebastian.wagner@suse.com>
Tue, 13 Feb 2018 16:24:04 +0000 (17:24 +0100)
committerRicardo Dias <rdias@suse.com>
Mon, 5 Mar 2018 13:07:11 +0000 (13:07 +0000)
Add `<repo>/build/bin` to `PATH` when running unit tests.

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
src/pybind/mgr/dashboard_v2/__init__.py

index 248abaabc83893431914590e5f3f92c6c07f647f..ccf1696f5f1ff08849eb7904144796d79f4571ff 100644 (file)
@@ -25,3 +25,5 @@ else:
     logging.basicConfig(level=logging.DEBUG)
     logger = logging.getLogger(__name__)
     logging.root.handlers[0].setLevel(logging.DEBUG)
+    os.environ['PATH'] = '{}:{}'.format(os.path.abspath('../../../../build/bin'),
+                                        os.environ['PATH'])