summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Heimes <cheimes@redhat.com>2016-12-01 14:49:14 +0100
committerPetr Vobornik <pvoborni@redhat.com>2016-12-02 09:02:07 +0100
commit3e3b5462b28f2133fd4170645cad762c0a0fbb4f (patch)
tree9b5a551c70c6a6a8d04da93304ae5b9ce02cd510
parentfb307ba582d4e7339b7026cbe26c3b170221e249 (diff)
downloadfreeipa-3e3b5462b28f2133fd4170645cad762c0a0fbb4f.tar.gz
freeipa-3e3b5462b28f2133fd4170645cad762c0a0fbb4f.tar.xz
freeipa-3e3b5462b28f2133fd4170645cad762c0a0fbb4f.zip
Remove BIN_FALSE and BIN_TRUE
https://fedorahosted.org/freeipa/ticket/6474 Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
-rw-r--r--ipaplatform/base/paths.py2
-rw-r--r--ipatests/test_ipalib/test_errors.py8
2 files changed, 4 insertions, 6 deletions
diff --git a/ipaplatform/base/paths.py b/ipaplatform/base/paths.py
index 9942fc143..f85a2aa12 100644
--- a/ipaplatform/base/paths.py
+++ b/ipaplatform/base/paths.py
@@ -24,13 +24,11 @@ This base platform module exports default filesystem paths.
class BasePathNamespace(object):
BASH = "/bin/bash"
- BIN_FALSE = "/bin/false"
BIN_HOSTNAMECTL = "/bin/hostnamectl"
LS = "/bin/ls"
SH = "/bin/sh"
SYSTEMCTL = "/bin/systemctl"
TAR = "/bin/tar"
- BIN_TRUE = "/bin/true"
AUTOFS_LDAP_AUTH_CONF = "/etc/autofs_ldap_auth.conf"
ETC_DIRSRV = "/etc/dirsrv"
DS_KEYTAB = "/etc/dirsrv/ds.keytab"
diff --git a/ipatests/test_ipalib/test_errors.py b/ipatests/test_ipalib/test_errors.py
index 43cd92654..893a3e9b9 100644
--- a/ipatests/test_ipalib/test_errors.py
+++ b/ipatests/test_ipalib/test_errors.py
@@ -32,7 +32,6 @@ import six
from ipatests.util import assert_equal, raises
from ipalib import errors
-from ipaplatform.paths import paths
from ipalib.constants import TYPE_ERROR
if six.PY3:
@@ -115,10 +114,11 @@ class test_SubprocessError(PrivateExceptionTester):
"""
Test the `ipalib.errors.SubprocessError.__init__` method.
"""
- inst = self.new(returncode=1, argv=(paths.BIN_FALSE,))
+ bin_false = '/bin/false'
+ inst = self.new(returncode=1, argv=(bin_false,))
assert inst.returncode == 1
- assert inst.argv == (paths.BIN_FALSE,)
- assert str(inst) == "return code 1 from ('/bin/false',)"
+ assert inst.argv == (bin_false,)
+ assert str(inst) == "return code 1 from ('{}',)".format(bin_false)
assert inst.message == str(inst)