travis: run hdfs test only on Linux

Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Ruslan Kuprieiev
2018-07-01 10:02:43 +03:00
parent 9d943f7b21
commit a392289cbf
3 changed files with 20 additions and 22 deletions
+3 -6
View File
@@ -5,6 +5,7 @@ import uuid
import shutil
import getpass
import tempfile
import platform
from dvc.main import main
from dvc.config import Config, ConfigError
@@ -66,11 +67,7 @@ def _should_test_ssh():
def _should_test_hdfs():
if os.name == 'nt':
return False
if os.getenv('HADOOP_CONTAINER_IP'):
return True
return False
return platform.system() == 'Linux'
def get_local_storagepath():
@@ -86,7 +83,7 @@ def get_ssh_url():
def get_hdfs_url():
return 'hdfs://{}@{}{}'.format(getpass.getuser(), os.getenv('HADOOP_CONTAINER_IP'), get_local_storagepath())
return 'hdfs://{}@127.0.0.1{}'.format(getpass.getuser(), get_local_storagepath())
def get_aws_storagepath():