Moving install to root for privileged scripts rather than the user; hooks cleanup; changing test strategey to helptext for now

This commit is contained in:
2023-12-07 12:28:55 -06:00
parent cf5cdb8f4f
commit e01ad632b2
4 changed files with 47 additions and 20 deletions

View File

@@ -5,7 +5,14 @@ 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 | timeout 3 sudo sftp -o IdentityFile=/home/aether/.ssh/aether aether@aninix.net", mode='r', buffering=-1)
fh = os.popen("./aether.bash -h", mode='r', buffering=-1)
output = fh.read()
retcode = fh.close()
assert retcode == None
assert retcode == None and 'Usage' in output
def test_aether_gen():
print(os.getcwd())
fh = os.popen("./aether-gen.bash -h", mode='r', buffering=-1)
output = fh.read()
retcode = fh.close()
assert retcode == None and 'Usage' in output