You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by kl...@apache.org on 2018/10/22 14:14:29 UTC

[mesos] branch master updated: Added new CLI constants 'TEST_DIRECTORY' and 'TEST_DATA_DIRECTORY'.

This is an automated email from the ASF dual-hosted git repository.

klueska pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git


The following commit(s) were added to refs/heads/master by this push:
     new 4624823  Added new CLI constants 'TEST_DIRECTORY' and 'TEST_DATA_DIRECTORY'.
4624823 is described below

commit 4624823deb37df5469e1d1e548945985b59a8a73
Author: Armand Grillet <ag...@mesosphere.io>
AuthorDate: Mon Oct 22 10:13:33 2018 -0400

    Added new CLI constants 'TEST_DIRECTORY' and 'TEST_DATA_DIRECTORY'.
    
    Review: https://reviews.apache.org/r/69119/
---
 src/python/cli_new/lib/cli/tests/constants.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/python/cli_new/lib/cli/tests/constants.py b/src/python/cli_new/lib/cli/tests/constants.py
index 1398701..44f96f4 100644
--- a/src/python/cli_new/lib/cli/tests/constants.py
+++ b/src/python/cli_new/lib/cli/tests/constants.py
@@ -18,8 +18,14 @@
 A collection of constants useful for the CLI unit tests.
 """
 
+import os
+
+
 TEST_MASTER_IP = "127.0.0.1"
 TEST_MASTER_PORT = "9090"
 
 TEST_AGENT_IP = "127.0.0.1"
 TEST_AGENT_PORT = "9091"
+
+TEST_DIRECTORY = os.path.dirname(os.path.realpath(__file__))
+TEST_DATA_DIRECTORY = os.path.join(TEST_DIRECTORY, "data")