Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
(cherry picked from commit 9a9d97c)
  • Loading branch information
creatorcary authored and bugclerk committed Aug 30, 2024
1 parent e556c1b commit b563978
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/api2/test_truenas_verify.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import subprocess
from middlewared.test.integration.utils import ssh


def test_truenas_verify():
completed = subprocess.run('truenas_verify', timeout=30)
response = ssh('truenas_verify', check=False, complete_response=True)

# Jenkins vms alter the system files for setup, so truenas_verify should generate errors.
assert completed.returncode != 0
with open('/var/log/truenas_verify.log') as f:
assert f.readline(), 'Test environment should log file verification errors.'
assert not response['result']
assert ssh('head /var/log/truenas_verify.log'), 'Test environment should log file verification errors.'

0 comments on commit b563978

Please sign in to comment.