From 9d06a4a29fb304856e48f5b91556e735a0a447d8 Mon Sep 17 00:00:00 2001 From: Stanislav Levin Date: Apr 22 2020 08:01:25 +0000 Subject: ipatests: Specify shell implementation The shell command line options and parameters used there are bash- specific. This results in an error on attempting of running 'ipa-run-tests' on systems where '/bin/sh' is pointing to another shell, for example, dash on Ubuntu. Fixes: https://pagure.io/freeipa/issue/8101 Signed-off-by: Stanislav Levin Reviewed-By: Sergey Orlov --- diff --git a/ipatests/ipa-run-tests b/ipatests/ipa-run-tests index b645f38..599b5cf 100755 --- a/ipatests/ipa-run-tests +++ b/ipatests/ipa-run-tests @@ -63,7 +63,7 @@ if not has_option("junit_family"): pyt_args = [sys.executable, "-c", "import sys,pytest;sys.exit(pytest.main())"] + sys.argv[1:] # shell is needed to perform globbing -sh_args = ["/bin/sh", "--norc", "--noprofile", "-c", "--"] +sh_args = ["/bin/bash", "--norc", "--noprofile", "-c", "--"] pyt_args_esc = [ f"'{x}'" if not x or " " in x else x for x in pyt_args