Skip to content

Commit 522684f

Browse files
Enrico Usaienrico-usai
authored andcommitted
Invoke bash shell with --login option to make ubuntu tests work
When bash is invoked with the --login option, it loads the /etc/profile, ~/.bash_profile, ~/.bash_login, and ~/.profile. We need the /etc/profile to have scheduler command in the path. Without this patch all the Ubuntu tests failed. Signed-off-by: Enrico Usai <[email protected]>
1 parent 154e1b8 commit 522684f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/cfncluster-release-check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def run_test(region, distro, scheduler, key_name, key_path):
119119
subprocess.check_call(['scp'] + ssh_params + ['cluster-check.sh', '%s@%s:.' % (username, master_ip)],
120120
stdout=stdout_f, stderr=stderr_f)
121121
subprocess.check_call(
122-
['ssh'] + ssh_params + ['%s@%s' % (username, master_ip), '/bin/bash cluster-check.sh %s' % scheduler],
122+
['ssh'] + ssh_params + ['%s@%s' % (username, master_ip), '/bin/bash --login cluster-check.sh %s' % scheduler],
123123
stdout=stdout_f, stderr=stderr_f)
124124

125125
except Exception as e:

0 commit comments

Comments
 (0)