Modernize scripts in bin/ #1753
45 fail, 3 170 pass in 8m 42s
Annotations
Check warning on line 0 in tests.integration.bin_test
github-actions / Test results
All 2 runs failed: test_binary_runs[./python/nav/bin/alertengine.py] (tests.integration.bin_test)
artifacts/test-reports/integration-py37-django32/integration-results.xml
artifacts/test-reports/integration-py38-django32/integration-results.xml
Raw output
binary = ['./python/nav/bin/alertengine.py', '--test']
def test_binary_runs(binary):
"""Verifies that a command runs with a zero exit code"""
proc = subprocess.Popen(binary, stderr=subprocess.STDOUT, stdout=subprocess.PIPE)
(done, fail) = proc.communicate()
retcode = proc.wait()
print(done.decode('utf-8'))
> assert retcode == 0
E assert 1 == 0
E +1
E -0
binary = ['./python/nav/bin/alertengine.py', '--test']
done = b'Traceback (most recent call last):\n File "./python/nav/bin/alertengine.py", line 40, in <module>\n from nav.boo...line 26, in <module>\n from .. import colors\nImportError: attempted relative import with no known parent package\n'
fail = None
proc = <subprocess.Popen object at 0x7f75e69b5df0>
retcode = 1
tests/integration/bin_test.py:17: AssertionError
Check warning on line 0 in tests.integration.bin_test
github-actions / Test results
All 2 runs failed: test_binary_runs[./python/nav/bin/autoenable.py] (tests.integration.bin_test)
artifacts/test-reports/integration-py37-django32/integration-results.xml
artifacts/test-reports/integration-py38-django32/integration-results.xml
Raw output
binary = ['./python/nav/bin/autoenable.py']
def test_binary_runs(binary):
"""Verifies that a command runs with a zero exit code"""
proc = subprocess.Popen(binary, stderr=subprocess.STDOUT, stdout=subprocess.PIPE)
(done, fail) = proc.communicate()
retcode = proc.wait()
print(done.decode('utf-8'))
> assert retcode == 0
E assert 1 == 0
E +1
E -0
binary = ['./python/nav/bin/autoenable.py']
done = b'Traceback (most recent call last):\n File "./python/nav/bin/autoenable.py", line 35, in <module>\n from nav.boot...line 26, in <module>\n from .. import colors\nImportError: attempted relative import with no known parent package\n'
fail = None
proc = <subprocess.Popen object at 0x7f75e6aea700>
retcode = 1
tests/integration/bin_test.py:17: AssertionError
Check warning on line 0 in tests.integration.bin_test
github-actions / Test results
All 2 runs failed: test_binary_runs[./python/nav/bin/collect_active_ip.py] (tests.integration.bin_test)
artifacts/test-reports/integration-py37-django32/integration-results.xml
artifacts/test-reports/integration-py38-django32/integration-results.xml
Raw output
binary = ['./python/nav/bin/collect_active_ip.py', '-h']
def test_binary_runs(binary):
"""Verifies that a command runs with a zero exit code"""
proc = subprocess.Popen(binary, stderr=subprocess.STDOUT, stdout=subprocess.PIPE)
(done, fail) = proc.communicate()
retcode = proc.wait()
print(done.decode('utf-8'))
> assert retcode == 0
E assert 1 == 0
E +1
E -0
binary = ['./python/nav/bin/collect_active_ip.py', '-h']
done = b'Traceback (most recent call last):\n File "./python/nav/bin/collect_active_ip.py", line 27, in <module>\n from n...line 26, in <module>\n from .. import colors\nImportError: attempted relative import with no known parent package\n'
fail = None
proc = <subprocess.Popen object at 0x7f75e6ae7a00>
retcode = 1
tests/integration/bin_test.py:17: AssertionError
Check warning on line 0 in tests.integration.bin_test
github-actions / Test results
All 2 runs failed: test_binary_runs[./python/nav/bin/emailreports.py] (tests.integration.bin_test)
artifacts/test-reports/integration-py37-django32/integration-results.xml
artifacts/test-reports/integration-py38-django32/integration-results.xml
Raw output
binary = ['./python/nav/bin/emailreports.py', 'month']
def test_binary_runs(binary):
"""Verifies that a command runs with a zero exit code"""
proc = subprocess.Popen(binary, stderr=subprocess.STDOUT, stdout=subprocess.PIPE)
(done, fail) = proc.communicate()
retcode = proc.wait()
print(done.decode('utf-8'))
> assert retcode == 0
E assert 1 == 0
E +1
E -0
binary = ['./python/nav/bin/emailreports.py', 'month']
done = b'Traceback (most recent call last):\n File "./python/nav/bin/emailreports.py", line 24, in <module>\n from nav.bo...line 26, in <module>\n from .. import colors\nImportError: attempted relative import with no known parent package\n'
fail = None
proc = <subprocess.Popen object at 0x7f75e6b0d730>
retcode = 1
tests/integration/bin_test.py:17: AssertionError
Check warning on line 0 in tests.integration.bin_test
github-actions / Test results
All 2 runs failed: test_binary_runs[./python/nav/bin/eventengine.py] (tests.integration.bin_test)
artifacts/test-reports/integration-py37-django32/integration-results.xml
artifacts/test-reports/integration-py38-django32/integration-results.xml
Raw output
binary = ['./python/nav/bin/eventengine.py', '-h']
def test_binary_runs(binary):
"""Verifies that a command runs with a zero exit code"""
proc = subprocess.Popen(binary, stderr=subprocess.STDOUT, stdout=subprocess.PIPE)
(done, fail) = proc.communicate()
retcode = proc.wait()
print(done.decode('utf-8'))
> assert retcode == 0
E assert 1 == 0
E +1
E -0
binary = ['./python/nav/bin/eventengine.py', '-h']
done = b'Traceback (most recent call last):\n File "./python/nav/bin/eventengine.py", line 14, in <module>\n from nav.boo...line 26, in <module>\n from .. import colors\nImportError: attempted relative import with no known parent package\n'
fail = None
proc = <subprocess.Popen object at 0x7f75e6b94b80>
retcode = 1
tests/integration/bin_test.py:17: AssertionError
Check warning on line 0 in tests.integration.bin_test
github-actions / Test results
All 2 runs failed: test_binary_runs[./python/nav/bin/ipdevpolld.py] (tests.integration.bin_test)
artifacts/test-reports/integration-py37-django32/integration-results.xml
artifacts/test-reports/integration-py38-django32/integration-results.xml
Raw output
binary = ['./python/nav/bin/ipdevpolld.py', '--list-plugins']
def test_binary_runs(binary):
"""Verifies that a command runs with a zero exit code"""
proc = subprocess.Popen(binary, stderr=subprocess.STDOUT, stdout=subprocess.PIPE)
(done, fail) = proc.communicate()
retcode = proc.wait()
print(done.decode('utf-8'))
> assert retcode == 0
E assert 1 == 0
E +1
E -0
binary = ['./python/nav/bin/ipdevpolld.py', '--list-plugins']
done = b'Traceback (most recent call last):\n File "./python/nav/bin/ipdevpolld.py", line 15, in <module>\n from nav.boot...line 26, in <module>\n from .. import colors\nImportError: attempted relative import with no known parent package\n'
fail = None
proc = <subprocess.Popen object at 0x7f75e6996310>
retcode = 1
tests/integration/bin_test.py:17: AssertionError
Check warning on line 0 in tests.integration.bin_test
github-actions / Test results
All 2 runs failed: test_binary_runs[./python/nav/bin/logengine.py] (tests.integration.bin_test)
artifacts/test-reports/integration-py37-django32/integration-results.xml
artifacts/test-reports/integration-py38-django32/integration-results.xml
Raw output
binary = ['./python/nav/bin/logengine.py']
def test_binary_runs(binary):
"""Verifies that a command runs with a zero exit code"""
proc = subprocess.Popen(binary, stderr=subprocess.STDOUT, stdout=subprocess.PIPE)
(done, fail) = proc.communicate()
retcode = proc.wait()
print(done.decode('utf-8'))
> assert retcode == 0
E assert 1 == 0
E +1
E -0
binary = ['./python/nav/bin/logengine.py']
done = b'Traceback (most recent call last):\n File "./python/nav/bin/logengine.py", line 5, in <module>\n from nav.logeng...line 26, in <module>\n from .. import colors\nImportError: attempted relative import with no known parent package\n'
fail = None
proc = <subprocess.Popen object at 0x7f75e6b94d60>
retcode = 1
tests/integration/bin_test.py:17: AssertionError
Check warning on line 0 in tests.integration.bin_test
github-actions / Test results
All 2 runs failed: test_binary_runs[./python/nav/bin/macwatch.py] (tests.integration.bin_test)
artifacts/test-reports/integration-py37-django32/integration-results.xml
artifacts/test-reports/integration-py38-django32/integration-results.xml
Raw output
binary = ['./python/nav/bin/macwatch.py']
def test_binary_runs(binary):
"""Verifies that a command runs with a zero exit code"""
proc = subprocess.Popen(binary, stderr=subprocess.STDOUT, stdout=subprocess.PIPE)
(done, fail) = proc.communicate()
retcode = proc.wait()
print(done.decode('utf-8'))
> assert retcode == 0
E assert 1 == 0
E +1
E -0
binary = ['./python/nav/bin/macwatch.py']
done = b'Traceback (most recent call last):\n File "./python/nav/bin/macwatch.py", line 27, in <module>\n from nav.bootst...line 26, in <module>\n from .. import colors\nImportError: attempted relative import with no known parent package\n'
fail = None
proc = <subprocess.Popen object at 0x7f75e69a69a0>
retcode = 1
tests/integration/bin_test.py:17: AssertionError
Check warning on line 0 in tests.integration.bin_test
github-actions / Test results
All 2 runs failed: test_binary_runs[./python/nav/bin/mailin.py] (tests.integration.bin_test)
artifacts/test-reports/integration-py37-django32/integration-results.xml
artifacts/test-reports/integration-py38-django32/integration-results.xml
Raw output
binary = ['./python/nav/bin/mailin.py']
def test_binary_runs(binary):
"""Verifies that a command runs with a zero exit code"""
proc = subprocess.Popen(binary, stderr=subprocess.STDOUT, stdout=subprocess.PIPE)
(done, fail) = proc.communicate()
retcode = proc.wait()
print(done.decode('utf-8'))
> assert retcode == 0
E assert 1 == 0
E +1
E -0
binary = ['./python/nav/bin/mailin.py']
done = b'Traceback (most recent call last):\n File "./python/nav/bin/mailin.py", line 28, in <module>\n from nav.bootstra...line 26, in <module>\n from .. import colors\nImportError: attempted relative import with no known parent package\n'
fail = None
proc = <subprocess.Popen object at 0x7f75e6996580>
retcode = 1
tests/integration/bin_test.py:17: AssertionError
Check warning on line 0 in tests.integration.bin_test
github-actions / Test results
All 2 runs failed: test_binary_runs[./python/nav/bin/maintengine.py] (tests.integration.bin_test)
artifacts/test-reports/integration-py37-django32/integration-results.xml
artifacts/test-reports/integration-py38-django32/integration-results.xml
Raw output
binary = ['./python/nav/bin/maintengine.py']
def test_binary_runs(binary):
"""Verifies that a command runs with a zero exit code"""
proc = subprocess.Popen(binary, stderr=subprocess.STDOUT, stdout=subprocess.PIPE)
(done, fail) = proc.communicate()
retcode = proc.wait()
print(done.decode('utf-8'))
> assert retcode == 0
E assert 1 == 0
E +1
E -0
binary = ['./python/nav/bin/maintengine.py']
done = b'Traceback (most recent call last):\n File "./python/nav/bin/maintengine.py", line 27, in <module>\n from nav.boo...line 26, in <module>\n from .. import colors\nImportError: attempted relative import with no known parent package\n'
fail = None
proc = <subprocess.Popen object at 0x7f75e6ae7d90>
retcode = 1
tests/integration/bin_test.py:17: AssertionError
Check warning on line 0 in tests.integration.bin_test
github-actions / Test results
All 2 runs failed: test_binary_runs[./python/nav/bin/nav.py] (tests.integration.bin_test)
artifacts/test-reports/integration-py37-django32/integration-results.xml
artifacts/test-reports/integration-py38-django32/integration-results.xml
Raw output
binary = ['./python/nav/bin/nav.py', 'list']
def test_binary_runs(binary):
"""Verifies that a command runs with a zero exit code"""
proc = subprocess.Popen(binary, stderr=subprocess.STDOUT, stdout=subprocess.PIPE)
(done, fail) = proc.communicate()
retcode = proc.wait()
print(done.decode('utf-8'))
> assert retcode == 0
E assert 1 == 0
E +1
E -0
binary = ['./python/nav/bin/nav.py', 'list']
done = b'Traceback (most recent call last):\n File "./python/nav/bin/nav.py", line 26, in <module>\n from .. import colors\nImportError: attempted relative import with no known parent package\n'
fail = None
proc = <subprocess.Popen object at 0x7f75e6a989d0>
retcode = 1
tests/integration/bin_test.py:17: AssertionError
Check warning on line 0 in tests.integration.bin_test
github-actions / Test results
All 2 runs failed: test_binary_runs[./python/nav/bin/navcheckservice.py] (tests.integration.bin_test)
artifacts/test-reports/integration-py37-django32/integration-results.xml
artifacts/test-reports/integration-py38-django32/integration-results.xml
Raw output
binary = ['./python/nav/bin/navcheckservice.py', '127.0.0.1', 'localhost', 'dummy']
def test_binary_runs(binary):
"""Verifies that a command runs with a zero exit code"""
proc = subprocess.Popen(binary, stderr=subprocess.STDOUT, stdout=subprocess.PIPE)
(done, fail) = proc.communicate()
retcode = proc.wait()
print(done.decode('utf-8'))
> assert retcode == 0
E assert 1 == 0
E +1
E -0
binary = ['./python/nav/bin/navcheckservice.py', '127.0.0.1', 'localhost', 'dummy']
done = b'Traceback (most recent call last):\n File "./python/nav/bin/navcheckservice.py", line 33, in <module>\n from nav...line 26, in <module>\n from .. import colors\nImportError: attempted relative import with no known parent package\n'
fail = None
proc = <subprocess.Popen object at 0x7f75e6a86610>
retcode = 1
tests/integration/bin_test.py:17: AssertionError
Check warning on line 0 in tests.integration.bin_test
github-actions / Test results
All 2 runs failed: test_binary_runs[./python/nav/bin/navclean.py] (tests.integration.bin_test)
artifacts/test-reports/integration-py37-django32/integration-results.xml
artifacts/test-reports/integration-py38-django32/integration-results.xml
Raw output
binary = ['./python/nav/bin/navclean.py', '--arp']
def test_binary_runs(binary):
"""Verifies that a command runs with a zero exit code"""
proc = subprocess.Popen(binary, stderr=subprocess.STDOUT, stdout=subprocess.PIPE)
(done, fail) = proc.communicate()
retcode = proc.wait()
print(done.decode('utf-8'))
> assert retcode == 0
E assert 1 == 0
E +1
E -0
binary = ['./python/nav/bin/navclean.py', '--arp']
done = b'Traceback (most recent call last):\n File "./python/nav/bin/navclean.py", line 25, in <module>\n from nav.bootst...line 26, in <module>\n from .. import colors\nImportError: attempted relative import with no known parent package\n'
fail = None
proc = <subprocess.Popen object at 0x7f75e6ae7670>
retcode = 1
tests/integration/bin_test.py:17: AssertionError
Check warning on line 0 in tests.integration.bin_test
github-actions / Test results
All 2 runs failed: test_binary_runs[./python/nav/bin/navdf.py] (tests.integration.bin_test)
artifacts/test-reports/integration-py37-django32/integration-results.xml
artifacts/test-reports/integration-py38-django32/integration-results.xml
Raw output
binary = ['./python/nav/bin/navdf.py']
def test_binary_runs(binary):
"""Verifies that a command runs with a zero exit code"""
proc = subprocess.Popen(binary, stderr=subprocess.STDOUT, stdout=subprocess.PIPE)
(done, fail) = proc.communicate()
retcode = proc.wait()
print(done.decode('utf-8'))
> assert retcode == 0
E assert 1 == 0
E +1
E -0
binary = ['./python/nav/bin/navdf.py']
done = b'Traceback (most recent call last):\n File "./python/nav/bin/navdf.py", line 25, in <module>\n from nav.bootstrap...line 26, in <module>\n from .. import colors\nImportError: attempted relative import with no known parent package\n'
fail = None
proc = <subprocess.Popen object at 0x7f75e6b0dbb0>
retcode = 1
tests/integration/bin_test.py:17: AssertionError
Check warning on line 0 in tests.integration.bin_test
github-actions / Test results
All 2 runs failed: test_binary_runs[./python/nav/bin/navdump.py] (tests.integration.bin_test)
artifacts/test-reports/integration-py37-django32/integration-results.xml
artifacts/test-reports/integration-py38-django32/integration-results.xml
Raw output
binary = ['./python/nav/bin/navdump.py', '-h']
def test_binary_runs(binary):
"""Verifies that a command runs with a zero exit code"""
proc = subprocess.Popen(binary, stderr=subprocess.STDOUT, stdout=subprocess.PIPE)
(done, fail) = proc.communicate()
retcode = proc.wait()
print(done.decode('utf-8'))
> assert retcode == 0
E assert 1 == 0
E +1
E -0
binary = ['./python/nav/bin/navdump.py', '-h']
done = b'Traceback (most recent call last):\n File "./python/nav/bin/navdump.py", line 27, in <module>\n from nav.bootstr...line 26, in <module>\n from .. import colors\nImportError: attempted relative import with no known parent package\n'
fail = None
proc = <subprocess.Popen object at 0x7f75e6b26fd0>
retcode = 1
tests/integration/bin_test.py:17: AssertionError
Check warning on line 0 in tests.integration.bin_test
github-actions / Test results
All 2 runs failed: test_binary_runs[./python/nav/bin/naventity.py] (tests.integration.bin_test)
artifacts/test-reports/integration-py37-django32/integration-results.xml
artifacts/test-reports/integration-py38-django32/integration-results.xml
Raw output
binary = ['./python/nav/bin/naventity.py', '-h']
def test_binary_runs(binary):
"""Verifies that a command runs with a zero exit code"""
proc = subprocess.Popen(binary, stderr=subprocess.STDOUT, stdout=subprocess.PIPE)
(done, fail) = proc.communicate()
retcode = proc.wait()
print(done.decode('utf-8'))
> assert retcode == 0
E assert 1 == 0
E +1
E -0
binary = ['./python/nav/bin/naventity.py', '-h']
done = b'Traceback (most recent call last):\n File "./python/nav/bin/naventity.py", line 31, in <module>\n from nav.boots...line 26, in <module>\n from .. import colors\nImportError: attempted relative import with no known parent package\n'
fail = None
proc = <subprocess.Popen object at 0x7f75e6aedf70>
retcode = 1
tests/integration/bin_test.py:17: AssertionError
Check warning on line 0 in tests.integration.bin_test
github-actions / Test results
All 2 runs failed: test_binary_runs[./python/nav/bin/navoidverify.py] (tests.integration.bin_test)
artifacts/test-reports/integration-py37-django32/integration-results.xml
artifacts/test-reports/integration-py38-django32/integration-results.xml
Raw output
binary = ['./python/nav/bin/navoidverify.py', '.1.3.6.1.2.1.1.2']
def test_binary_runs(binary):
"""Verifies that a command runs with a zero exit code"""
proc = subprocess.Popen(binary, stderr=subprocess.STDOUT, stdout=subprocess.PIPE)
(done, fail) = proc.communicate()
retcode = proc.wait()
print(done.decode('utf-8'))
> assert retcode == 0
E assert 1 == 0
E +1
E -0
binary = ['./python/nav/bin/navoidverify.py', '.1.3.6.1.2.1.1.2']
done = b'Traceback (most recent call last):\n File "./python/nav/bin/navoidverify.py", line 29, in <module>\n from nav.bo...line 26, in <module>\n from .. import colors\nImportError: attempted relative import with no known parent package\n'
fail = None
proc = <subprocess.Popen object at 0x7f75e6b266d0>
retcode = 1
tests/integration/bin_test.py:17: AssertionError
Check warning on line 0 in tests.integration.bin_test
github-actions / Test results
All 2 runs failed: test_binary_runs[./python/nav/bin/navpgdump.py] (tests.integration.bin_test)
artifacts/test-reports/integration-py37-django32/integration-results.xml
artifacts/test-reports/integration-py38-django32/integration-results.xml
Raw output
binary = ['./python/nav/bin/navpgdump.py', '--only-open-arp']
def test_binary_runs(binary):
"""Verifies that a command runs with a zero exit code"""
proc = subprocess.Popen(binary, stderr=subprocess.STDOUT, stdout=subprocess.PIPE)
(done, fail) = proc.communicate()
retcode = proc.wait()
print(done.decode('utf-8'))
> assert retcode == 0
E assert 1 == 0
E +1
E -0
binary = ['./python/nav/bin/navpgdump.py', '--only-open-arp']
done = b'Traceback (most recent call last):\n File "./python/nav/bin/navpgdump.py", line 3, in <module>\n from nav.pgdump...line 26, in <module>\n from .. import colors\nImportError: attempted relative import with no known parent package\n'
fail = None
proc = <subprocess.Popen object at 0x7f75e6a9d3d0>
retcode = 1
tests/integration/bin_test.py:17: AssertionError
Check warning on line 0 in tests.integration.bin_test
github-actions / Test results
All 2 runs failed: test_binary_runs[./python/nav/bin/navsnmp.py] (tests.integration.bin_test)
artifacts/test-reports/integration-py37-django32/integration-results.xml
artifacts/test-reports/integration-py38-django32/integration-results.xml
Raw output
binary = ['./python/nav/bin/navsnmp.py']
def test_binary_runs(binary):
"""Verifies that a command runs with a zero exit code"""
proc = subprocess.Popen(binary, stderr=subprocess.STDOUT, stdout=subprocess.PIPE)
(done, fail) = proc.communicate()
retcode = proc.wait()
print(done.decode('utf-8'))
> assert retcode == 0
E assert 1 == 0
E +1
E -0
binary = ['./python/nav/bin/navsnmp.py']
done = b'Traceback (most recent call last):\n File "./python/nav/bin/navsnmp.py", line 21, in <module>\n from nav.bootstr...line 26, in <module>\n from .. import colors\nImportError: attempted relative import with no known parent package\n'
fail = None
proc = <subprocess.Popen object at 0x7f75e6ab3b80>
retcode = 1
tests/integration/bin_test.py:17: AssertionError
Check warning on line 0 in tests.integration.bin_test
github-actions / Test results
All 2 runs failed: test_binary_runs[./python/nav/bin/navstats.py] (tests.integration.bin_test)
artifacts/test-reports/integration-py37-django32/integration-results.xml
artifacts/test-reports/integration-py38-django32/integration-results.xml
Raw output
binary = ['./python/nav/bin/navstats.py']
def test_binary_runs(binary):
"""Verifies that a command runs with a zero exit code"""
proc = subprocess.Popen(binary, stderr=subprocess.STDOUT, stdout=subprocess.PIPE)
(done, fail) = proc.communicate()
retcode = proc.wait()
print(done.decode('utf-8'))
> assert retcode == 0
E assert 1 == 0
E +1
E -0
binary = ['./python/nav/bin/navstats.py']
done = b'Traceback (most recent call last):\n File "./python/nav/bin/navstats.py", line 26, in <module>\n from nav.bootst...line 26, in <module>\n from .. import colors\nImportError: attempted relative import with no known parent package\n'
fail = None
proc = <subprocess.Popen object at 0x7f75e6990490>
retcode = 1
tests/integration/bin_test.py:17: AssertionError
Check warning on line 0 in tests.integration.bin_test
github-actions / Test results
All 2 runs failed: test_binary_runs[./python/nav/bin/navsyncdb.py] (tests.integration.bin_test)
artifacts/test-reports/integration-py37-django32/integration-results.xml
artifacts/test-reports/integration-py38-django32/integration-results.xml
Raw output
binary = ['./python/nav/bin/navsyncdb.py']
def test_binary_runs(binary):
"""Verifies that a command runs with a zero exit code"""
proc = subprocess.Popen(binary, stderr=subprocess.STDOUT, stdout=subprocess.PIPE)
(done, fail) = proc.communicate()
retcode = proc.wait()
print(done.decode('utf-8'))
> assert retcode == 0
E assert 1 == 0
E +1
E -0
binary = ['./python/nav/bin/navsyncdb.py']
done = b'Traceback (most recent call last):\n File "./python/nav/bin/navsyncdb.py", line 2, in <module>\n from nav.pgsync...line 26, in <module>\n from .. import colors\nImportError: attempted relative import with no known parent package\n'
fail = None
proc = <subprocess.Popen object at 0x7f75e6aeda30>
retcode = 1
tests/integration/bin_test.py:17: AssertionError
Check warning on line 0 in tests.integration.bin_test
github-actions / Test results
All 2 runs failed: test_binary_runs[./python/nav/bin/navsynctypes.py] (tests.integration.bin_test)
artifacts/test-reports/integration-py37-django32/integration-results.xml
artifacts/test-reports/integration-py38-django32/integration-results.xml
Raw output
binary = ['./python/nav/bin/navsynctypes.py']
def test_binary_runs(binary):
"""Verifies that a command runs with a zero exit code"""
proc = subprocess.Popen(binary, stderr=subprocess.STDOUT, stdout=subprocess.PIPE)
(done, fail) = proc.communicate()
retcode = proc.wait()
print(done.decode('utf-8'))
> assert retcode == 0
E assert 1 == 0
E +1
E -0
binary = ['./python/nav/bin/navsynctypes.py']
done = b'Traceback (most recent call last):\n File "./python/nav/bin/navsynctypes.py", line 23, in <module>\n import nav....line 26, in <module>\n from .. import colors\nImportError: attempted relative import with no known parent package\n'
fail = None
proc = <subprocess.Popen object at 0x7f75e69bbf70>
retcode = 1
tests/integration/bin_test.py:17: AssertionError
Check warning on line 0 in tests.integration.bin_test
github-actions / Test results
All 2 runs failed: test_binary_runs[./python/nav/bin/navtopology.py] (tests.integration.bin_test)
artifacts/test-reports/integration-py37-django32/integration-results.xml
artifacts/test-reports/integration-py38-django32/integration-results.xml
Raw output
binary = ['./python/nav/bin/navtopology.py']
def test_binary_runs(binary):
"""Verifies that a command runs with a zero exit code"""
proc = subprocess.Popen(binary, stderr=subprocess.STDOUT, stdout=subprocess.PIPE)
(done, fail) = proc.communicate()
retcode = proc.wait()
print(done.decode('utf-8'))
> assert retcode == 0
E assert 1 == 0
E +1
E -0
binary = ['./python/nav/bin/navtopology.py']
done = b'Traceback (most recent call last):\n File "./python/nav/bin/navtopology.py", line 2, in <module>\n from nav.boot...line 26, in <module>\n from .. import colors\nImportError: attempted relative import with no known parent package\n'
fail = None
proc = <subprocess.Popen object at 0x7f75e69f6580>
retcode = 1
tests/integration/bin_test.py:17: AssertionError
Check warning on line 0 in tests.integration.bin_test
github-actions / Test results
All 2 runs failed: test_binary_runs[./python/nav/bin/navuser.py] (tests.integration.bin_test)
artifacts/test-reports/integration-py37-django32/integration-results.xml
artifacts/test-reports/integration-py38-django32/integration-results.xml
Raw output
binary = ['./python/nav/bin/navuser.py', 'list']
def test_binary_runs(binary):
"""Verifies that a command runs with a zero exit code"""
proc = subprocess.Popen(binary, stderr=subprocess.STDOUT, stdout=subprocess.PIPE)
(done, fail) = proc.communicate()
retcode = proc.wait()
print(done.decode('utf-8'))
> assert retcode == 0
E assert 1 == 0
E +1
E -0
binary = ['./python/nav/bin/navuser.py', 'list']
done = b'Traceback (most recent call last):\n File "./python/nav/bin/navuser.py", line 26, in <module>\n from nav.bootstr...line 26, in <module>\n from .. import colors\nImportError: attempted relative import with no known parent package\n'
fail = None
proc = <subprocess.Popen object at 0x7f75e6a9ab80>
retcode = 1
tests/integration/bin_test.py:17: AssertionError
Check warning on line 0 in tests.integration.bin_test
github-actions / Test results
All 2 runs failed: test_binary_runs[./python/nav/bin/netbiostracker.py] (tests.integration.bin_test)
artifacts/test-reports/integration-py37-django32/integration-results.xml
artifacts/test-reports/integration-py38-django32/integration-results.xml
Raw output
binary = ['./python/nav/bin/netbiostracker.py']
def test_binary_runs(binary):
"""Verifies that a command runs with a zero exit code"""
proc = subprocess.Popen(binary, stderr=subprocess.STDOUT, stdout=subprocess.PIPE)
(done, fail) = proc.communicate()
retcode = proc.wait()
print(done.decode('utf-8'))
> assert retcode == 0
E assert 1 == 0
E +1
E -0
binary = ['./python/nav/bin/netbiostracker.py']
done = b'Traceback (most recent call last):\n File "./python/nav/bin/netbiostracker.py", line 22, in <module>\n from nav....line 26, in <module>\n from .. import colors\nImportError: attempted relative import with no known parent package\n'
fail = None
proc = <subprocess.Popen object at 0x7f75e69db910>
retcode = 1
tests/integration/bin_test.py:17: AssertionError