X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=tests%2Frun_some_dependencies_test.py;h=c9f48a51a77d1b7c35bb1925e434198885d886ea;hb=532df2c5b57c7517dfb3dddd8c1358fbadf8baf3;hp=7e87d44561088b7d6bf9ca0ed4232ae9c3063fa7;hpb=1ddc626af0a4d57f217008525bca488fdf5ebe6f;p=python_utils.git diff --git a/tests/run_some_dependencies_test.py b/tests/run_some_dependencies_test.py index 7e87d44..c9f48a5 100755 --- a/tests/run_some_dependencies_test.py +++ b/tests/run_some_dependencies_test.py @@ -1,5 +1,7 @@ #!/usr/bin/env python3 +# © Copyright 2021-2022, Scott Gasch + """This is a "test" that just runs a few system utilities that have dependencies on this library in "do nothing" mode and makes sure they exit cleanly. @@ -8,7 +10,6 @@ exit cleanly. import logging import unittest -from typing import Optional import bootstrap import exec_utils @@ -26,10 +27,12 @@ class RunSomeDependenciesTest(unittest.TestCase): "/home/scott/bin/tplink.py -a office_lights -c info --audit_import_events >& /dev/null", "/home/scott/bin/unscramble.py ethyropadratoyzrhoiectmi --trace_memory >& /dev/null", "/home/scott/bin/cron.py --command='sleep 0' --lockfile=/tmp/deleteme_lock >& /dev/null", + "/home/scott/cron/manage_switch_off_timers.py >& /dev/null", + "/home/scott/bin/smart_device.py cabin and outside and timeout:* -c print >& /dev/null", ] for command in commands: try: - ret = exec_utils.cmd_with_timeout(command, 5.0) + ret = exec_utils.cmd_with_timeout(command, 15.0) self.assertEqual(0, ret) except Exception as e: logger.exception(e)