X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=tests%2Frun_some_dependencies_test.py;h=fcc9e7a29341ca5db4e859cba6ec875ce600feb3;hb=0a449b165cc07b584e4467ff55a3ed16ca53fff0;hp=5a567afa9920a27e856496992bedf321f7613a23;hpb=f135ec7ae3d7ca347d7489eb28d30b5db98f49de;p=python_utils.git diff --git a/tests/run_some_dependencies_test.py b/tests/run_some_dependencies_test.py index 5a567af..fcc9e7a 100755 --- a/tests/run_some_dependencies_test.py +++ b/tests/run_some_dependencies_test.py @@ -8,7 +8,6 @@ exit cleanly. import logging import unittest -from typing import Optional import bootstrap import exec_utils @@ -18,17 +17,20 @@ logger = logging.getLogger(__name__) class RunSomeDependenciesTest(unittest.TestCase): - def make_sure_random_utilities_still_seem_to_work(self): + def test_make_sure_random_utilities_still_seem_to_work(self): commands = [ - "/home/scott/cron/manage_lights.py -n --run_profiler", + "/home/scott/cron/manage_lights.py -n --run_profiler >& /dev/null", "/home/scott/bin/reminder.py --logging_level=DEBUG >& /dev/null", "/home/scott/bin/wordle.py --mode=AUTOPLAY --template=trial >& /dev/null", "/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)