2020-02-08 13:34:58 -06:00
|
|
|
import pytest
|
|
|
|
import os
|
|
|
|
import subprocess
|
|
|
|
|
|
|
|
# TODO Still need to devise a testing strategy (https://foundation.aninix.net/AniNIX/Aether/issues/1)
|
|
|
|
def test_aether():
|
|
|
|
print(os.getcwd())
|
2023-10-10 12:21:29 -05:00
|
|
|
fh = os.popen("echo bye | timeout 3 sudo sftp -o IdentityFile=/home/aether/.ssh/aether aether@aninix.net", mode='r', buffering=-1)
|
2020-02-08 13:34:58 -06:00
|
|
|
output = fh.read()
|
|
|
|
retcode = fh.close()
|
2023-07-15 22:34:00 -05:00
|
|
|
assert retcode == None
|