summaryrefslogtreecommitdiff
path: root/selftest/run.py
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2012-03-05 03:27:40 +0100
committerJelmer Vernooij <jelmer@samba.org>2012-03-05 03:27:40 +0100
commitd6924f803904d25a7f9cac2ec69f421d7a5bdeab (patch)
tree777b9ce051936e3351b0de83f0b1bc149ffbd393 /selftest/run.py
parent1741e6486dbae821aaac8bc4bd52938e4034f870 (diff)
downloadsamba-d6924f803904d25a7f9cac2ec69f421d7a5bdeab.tar.gz
samba-d6924f803904d25a7f9cac2ec69f421d7a5bdeab.tar.bz2
samba-d6924f803904d25a7f9cac2ec69f421d7a5bdeab.zip
selftest.run: Factor out expand_command_list.
Diffstat (limited to 'selftest/run.py')
-rw-r--r--selftest/run.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/selftest/run.py b/selftest/run.py
index 4ef10de142..c40dd7e389 100644
--- a/selftest/run.py
+++ b/selftest/run.py
@@ -15,7 +15,8 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-import os
+import subprocess
+import warnings
# expand strings from %ENV
def expand_environment_strings(s, vars):
@@ -26,4 +27,7 @@ def expand_environment_strings(s, vars):
return s
-
+def expand_command_list(cmd):
+ if not "$LISTOPT" in cmd:
+ return None
+ return cmd.replace("$LISTOPT", "--list")