Updating to include systemd timers

Better Makefile layout
Improving pytest
This commit is contained in:
2023-07-15 22:34:00 -05:00
parent 49f9f6d315
commit 3b49a6c49e
12 changed files with 123 additions and 87 deletions

View File

@@ -5,7 +5,7 @@ import subprocess
# TODO Still need to devise a testing strategy (https://foundation.aninix.net/AniNIX/Aether/issues/1)
def test_aether():
print(os.getcwd())
fh = os.popen("echo bye | sftp -o IdentityFile=./aether aether@aninix.net", mode='r', buffering=-1)
fh = os.popen("echo bye | timeout 3 sftp -o IdentityFile=./aether aether@aninix.net", mode='r', buffering=-1)
output = fh.read()
retcode = fh.close()
assert retcode == None and CheckOutput(output)
assert retcode == None