summaryrefslogtreecommitdiffstats
path: root/src/tests/intg/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/intg/util.py')
-rw-r--r--src/tests/intg/util.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tests/intg/util.py b/src/tests/intg/util.py
index 5dd92b220..6e8f15d02 100644
--- a/src/tests/intg/util.py
+++ b/src/tests/intg/util.py
@@ -23,6 +23,7 @@ import subprocess
UNINDENT_RE = re.compile("^ +", re.MULTILINE)
+
def unindent(text):
"""
Unindent text by removing at most the number of spaces present in
@@ -35,6 +36,7 @@ def unindent(text):
return match.group()[indent_ref[0]:]
return UNINDENT_RE.sub(replace, text)
+
def run_shell():
"""
Execute an interactive shell under "screen", preserving environment.
@@ -48,6 +50,7 @@ def run_shell():
"bash -i"
])
+
def first_dir(*args):
"""Return first argument that points to an existing directory."""
for arg in args: