From 186e1bbc5df50bdd5a1d1b15e731e7b0da62406b Mon Sep 17 00:00:00 2001 From: Min RK Date: Fri, 26 Apr 2019 16:15:40 +0200 Subject: [PATCH] repo-path verifies conda prefix --- tests/conda/repo-path/verify | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/conda/repo-path/verify b/tests/conda/repo-path/verify index 29559cb6..78a68f37 100755 --- a/tests/conda/repo-path/verify +++ b/tests/conda/repo-path/verify @@ -2,8 +2,10 @@ import sys import os -# Python should still be in /srv/conda -assert sys.executable == os.path.join(os.environ['NB_PYTHON_PREFIX'], 'bin', 'python') +# conda should still be in /srv/conda +# and Python should still be in $NB_PYTHON_PREFIX +assert sys.executable == os.path.join(os.environ['NB_PYTHON_PREFIX'], 'bin', 'python'), sys.executable +assert sys.executable.startswith("/srv/conda/"), sys.executable # Repo should be in /srv/repo assert os.path.exists('/srv/repo/verify')