File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -35,11 +35,17 @@ jobs:
35
35
run : |
36
36
sed -i "1iexport CLUSTERSHELL_GW_PYTHON_EXECUTABLE=$(which python)" ~/.bashrc
37
37
sed -i "2iexport PYTHONPATH=\$PYTHONPATH:$(realpath $pythonLocation/lib/python*/site-packages)" ~/.bashrc
38
- head ~/.bashrc
38
+ head -2 ~/.bashrc
39
39
- name : Install pdsh to test WorkerPdsh
40
40
run : |
41
41
sudo apt-get -y install pdsh
42
42
sudo sh -c 'echo ssh > /etc/pdsh/rcmd_default'
43
+ - name : Add tests/bin to remote PATH
44
+ run : |
45
+ sed -i "1iexport PATH=$PWD/tests/bin:\$PATH" ~/.bashrc
46
+ head -1 ~/.bashrc
47
+ ssh 127.0.0.2 which hostname
48
+ ssh 127.0.0.2 hostname
43
49
- name : Post to Slack (start)
44
50
continue-on-error : true
45
51
id : slack-start
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # This is useful for simulating multiple nodes on localhost IPs,
3
+ # such as 127.0.0.2, during testing scenarios.
4
+ echo $SSH_CONNECTION | { IFS=' ' read -r _ _ IP _; echo " $IP " ; }
You can’t perform that action at this time.
0 commit comments