create adb simulator in /usr/bin
@@ -21,6 +21,27 @@ jobs:
python -m pip install --upgrade pip setuptools wheel
pip install -U pycodestyle coveralls pytest pytest-mccabe pytest-random mock pytest-asyncio
pip install -Ur requirements.txt
+ - name: Create local users required by integration tests
+ run: |
+ cat /etc/passwd | grep home
+ sudo useradd molerssh -c MolerSshTest -s /bin/bash -l -m -p `python3 -c 'import crypt; print(crypt.crypt("moler_password", "mr"))'`
+ sudo useradd sshproxy -c Proxy4SshTest -s /bin/bash -l -m -p `python3 -c 'import crypt; print(crypt.crypt("proxy_password", "mr"))'`
+ sudo useradd adbshell -c AdbShell4SshTest -s /bin/bash -l -m -p `python3 -c 'import crypt; print(crypt.crypt("adb_password", "mr"))'`
+ cat /etc/passwd | grep home
+ echo ---- try logging as integration tests users via ssh
+ sshpass -p moler_password ssh -oStrictHostKeyChecking=no molerssh@localhost pwd
+ sshpass -p proxy_password ssh -oStrictHostKeyChecking=no sshproxy@localhost pwd
+ sshpass -p adb_password ssh -oStrictHostKeyChecking=no adbshell@localhost pwd
+ - name: show /usr/bin
+ run: |
+ ls -ld /usr/bin
+ ls -la /usr/bin
+ - name: Upload adb simulator
+ run: |
+ sudo cp adb_simulation.sh /usr/bin/adb
+ sudo chmod +x /usr/bin/adb
+ sudo ls -l /usr/bin/adb
+ which adb
- name: extend path with /home/molerssh
run: |
echo "/home/molerssh" >> $GITHUB_PATH
@@ -32,15 +53,7 @@ jobs:
python -V
echo $PATH
echo "${{ env.PATH }}"
- cat /etc/passwd | grep home
- sudo useradd molerssh -c MolerSshTest -s /bin/bash -l -m -p `python3 -c 'import crypt; print(crypt.crypt("moler_password", "mr"))'`
- sudo useradd sshproxy -c Proxy4SshTest -s /bin/bash -l -m -p `python3 -c 'import crypt; print(crypt.crypt("proxy_password", "mr"))'`
- sudo useradd adbshell -c AdbShell4SshTest -s /bin/bash -l -m -p `python3 -c 'import crypt; print(crypt.crypt("adb_password", "mr"))'`
- cat /etc/passwd | grep home
which scp
- sshpass -p moler_password ssh -oStrictHostKeyChecking=no molerssh@localhost pwd
- sshpass -p proxy_password ssh -oStrictHostKeyChecking=no sshproxy@localhost pwd
- sshpass -p adb_password ssh -oStrictHostKeyChecking=no adbshell@localhost pwd
sshpass -p moler_password scp adb_simulation.sh molerssh@localhost:/home/molerssh/adb_simulation.sh
sshpass -p moler_password ssh molerssh@localhost 'chmod +x ~/adb_simulation.sh'
sshpass -p moler_password ssh molerssh@localhost 'echo "echo ---------InProfile----------" >> ~/.profile'
