diff --git a/cli/__init__.py b/cli/__init__.py old mode 100755 new mode 100644 diff --git a/cli/acl.py b/cli/acl.py old mode 100755 new mode 100644 diff --git a/cli/action_common.py b/cli/action_common.py old mode 100755 new mode 100644 diff --git a/cli/atest.py b/cli/atest.py old mode 100755 new mode 100644 diff --git a/cli/cli_mock.py b/cli/cli_mock.py old mode 100755 new mode 100644 diff --git a/cli/common.py b/cli/common.py old mode 100755 new mode 100644 diff --git a/cli/host.py b/cli/host.py old mode 100755 new mode 100644 diff --git a/cli/job.py b/cli/job.py old mode 100755 new mode 100644 diff --git a/cli/label.py b/cli/label.py old mode 100755 new mode 100644 diff --git a/cli/rpc.py b/cli/rpc.py old mode 100755 new mode 100644 diff --git a/cli/site_readme.py b/cli/site_readme.py old mode 100755 new mode 100644 diff --git a/cli/test.py b/cli/test.py old mode 100755 new mode 100644 diff --git a/cli/threads.py b/cli/threads.py old mode 100755 new mode 100644 diff --git a/cli/topic_common.py b/cli/topic_common.py old mode 100755 new mode 100644 diff --git a/cli/user.py b/cli/user.py old mode 100755 new mode 100644 diff --git a/client/bin/base_partition.py b/client/bin/base_partition.py old mode 100755 new mode 100644 diff --git a/client/bin/base_utils.py b/client/bin/base_utils.py old mode 100755 new mode 100644 diff --git a/client/bin/fsinfo.py b/client/bin/fsinfo.py old mode 100755 new mode 100644 diff --git a/client/bin/harness.py b/client/bin/harness.py old mode 100755 new mode 100644 diff --git a/client/bin/harness_ABAT.py b/client/bin/harness_ABAT.py old mode 100755 new mode 100644 diff --git a/client/bin/harness_simple.py b/client/bin/harness_simple.py old mode 100755 new mode 100644 diff --git a/client/bin/job.py b/client/bin/job.py old mode 100755 new mode 100644 diff --git a/client/bin/kernel.py b/client/bin/kernel.py old mode 100755 new mode 100644 diff --git a/client/bin/kernel_config.py b/client/bin/kernel_config.py old mode 100755 new mode 100644 diff --git a/client/bin/net/__init__.py b/client/bin/net/__init__.py old mode 100755 new mode 100644 diff --git a/client/bin/net/basic_machine.py b/client/bin/net/basic_machine.py old mode 100755 new mode 100644 diff --git a/client/bin/net/common.py b/client/bin/net/common.py old mode 100755 new mode 100644 diff --git a/client/bin/net/net_tc.py b/client/bin/net/net_tc.py old mode 100755 new mode 100644 diff --git a/client/bin/net/net_utils.py b/client/bin/net/net_utils.py old mode 100755 new mode 100644 diff --git a/client/bin/net/net_utils_mock.py b/client/bin/net/net_utils_mock.py old mode 100755 new mode 100644 diff --git a/client/bin/profiler.py b/client/bin/profiler.py old mode 100755 new mode 100644 diff --git a/client/bin/profilers.py b/client/bin/profilers.py old mode 100755 new mode 100644 diff --git a/client/bin/setup_job.py b/client/bin/setup_job.py index 8458402d8d..1eee4a4a44 100644 --- a/client/bin/setup_job.py +++ b/client/bin/setup_job.py @@ -8,7 +8,7 @@ def initialize(client_job): cwd = os.getcwd() os.chdir(client_job.autodir) - os.system('tools/make_clean') + os.system('tools/make_clean') os.chdir(cwd) sys.path.insert(0, client_job.bindir) @@ -66,4 +66,3 @@ def setup_test(testname, client_job): finally: os.chdir(pwd) shutil.rmtree(auto_test.tmpdir, ignore_errors=True) - diff --git a/client/bin/sysinfo.py b/client/bin/sysinfo.py old mode 100755 new mode 100644 diff --git a/client/bin/test.py b/client/bin/test.py old mode 100755 new mode 100644 diff --git a/client/bin/utils.py b/client/bin/utils.py old mode 100755 new mode 100644 diff --git a/client/common_lib/barrier.py b/client/common_lib/barrier.py old mode 100755 new mode 100644 diff --git a/client/common_lib/base_check_version.py b/client/common_lib/base_check_version.py old mode 100755 new mode 100644 diff --git a/client/common_lib/base_job_unittest.py b/client/common_lib/base_job_unittest.py old mode 100644 new mode 100755 diff --git a/client/common_lib/boottool_unittest.py b/client/common_lib/boottool_unittest.py old mode 100644 new mode 100755 diff --git a/client/common_lib/check_version.py b/client/common_lib/check_version.py old mode 100755 new mode 100644 diff --git a/client/common_lib/kernel_versions.py b/client/common_lib/kernel_versions.py old mode 100755 new mode 100644 diff --git a/client/common_lib/test_utils/__init__.py b/client/common_lib/test_utils/__init__.py old mode 100755 new mode 100644 diff --git a/client/common_lib/test_utils/unittest.py b/client/common_lib/test_utils/unittest.py old mode 100644 new mode 100755 diff --git a/client/deps/libcap/common.py b/client/deps/libcap/common.py old mode 100755 new mode 100644 diff --git a/client/deps/libnet/libnet.tar.gz b/client/deps/libnet/libnet.tar.gz old mode 100755 new mode 100644 diff --git a/client/profilers/catprofile/catprofile.py b/client/profilers/catprofile/catprofile.py old mode 100755 new mode 100644 diff --git a/client/profilers/cmdprofile/__init__.py b/client/profilers/cmdprofile/__init__.py old mode 100755 new mode 100644 diff --git a/client/profilers/cmdprofile/cmdprofile.py b/client/profilers/cmdprofile/cmdprofile.py old mode 100755 new mode 100644 diff --git a/client/profilers/iostat/iostat.py b/client/profilers/iostat/iostat.py old mode 100755 new mode 100644 diff --git a/client/profilers/lockmeter/lockmeter.py b/client/profilers/lockmeter/lockmeter.py old mode 100755 new mode 100644 diff --git a/client/profilers/lttng/lttng.py b/client/profilers/lttng/lttng.py old mode 100755 new mode 100644 diff --git a/client/profilers/oprofile/oprofile.py b/client/profilers/oprofile/oprofile.py old mode 100755 new mode 100644 diff --git a/client/profilers/readprofile/readprofile.py b/client/profilers/readprofile/readprofile.py old mode 100755 new mode 100644 diff --git a/client/profilers/vmstat/vmstat.py b/client/profilers/vmstat/vmstat.py old mode 100755 new mode 100644 diff --git a/client/samples/all_tests b/client/samples/all_tests old mode 100755 new mode 100644 diff --git a/client/samples/build b/client/samples/build old mode 100755 new mode 100644 diff --git a/client/samples/build2 b/client/samples/build2 old mode 100755 new mode 100644 diff --git a/client/samples/filesystem b/client/samples/filesystem old mode 100755 new mode 100644 diff --git a/client/samples/kernelexpand b/client/samples/kernelexpand old mode 100755 new mode 100644 diff --git a/client/samples/parallel_dd b/client/samples/parallel_dd old mode 100755 new mode 100644 diff --git a/client/samples/test_install b/client/samples/test_install old mode 100755 new mode 100644 diff --git a/client/samples/test_job b/client/samples/test_job old mode 100755 new mode 100644 diff --git a/client/tests/aborttest/aborttest.py b/client/tests/aborttest/aborttest.py old mode 100755 new mode 100644 diff --git a/client/tests/aiostress/aiostress.py b/client/tests/aiostress/aiostress.py old mode 100755 new mode 100644 diff --git a/client/tests/bash_shared_mapping/bash_shared_mapping.py b/client/tests/bash_shared_mapping/bash_shared_mapping.py old mode 100755 new mode 100644 diff --git a/client/tests/bonnie/bonnie.py b/client/tests/bonnie/bonnie.py old mode 100755 new mode 100644 diff --git a/client/tests/compilebench/compilebench.py b/client/tests/compilebench/compilebench.py old mode 100755 new mode 100644 diff --git a/client/tests/cpuset_tasks/cpuset_tasks.py b/client/tests/cpuset_tasks/cpuset_tasks.py old mode 100755 new mode 100644 diff --git a/client/tests/cyclictest/cyclictest.py b/client/tests/cyclictest/cyclictest.py old mode 100755 new mode 100644 diff --git a/client/tests/dbench/dbench.py b/client/tests/dbench/dbench.py old mode 100755 new mode 100644 diff --git a/client/tests/disktest/disktest.py b/client/tests/disktest/disktest.py old mode 100755 new mode 100644 diff --git a/client/tests/fsfuzzer/fsfuzzer.py b/client/tests/fsfuzzer/fsfuzzer.py old mode 100755 new mode 100644 diff --git a/client/tests/fsx/fsx.py b/client/tests/fsx/fsx.py old mode 100755 new mode 100644 diff --git a/client/tests/iosched_bugs/iosched_bugs.py b/client/tests/iosched_bugs/iosched_bugs.py old mode 100755 new mode 100644 diff --git a/client/tests/kernbench/control b/client/tests/kernbench/control old mode 100755 new mode 100644 diff --git a/client/tests/kernbench/control.readprofile b/client/tests/kernbench/control.readprofile old mode 100755 new mode 100644 diff --git a/client/tests/kernbench/kernbench.old b/client/tests/kernbench/kernbench.old old mode 100755 new mode 100644 diff --git a/client/tests/kernbench/kernbench.py b/client/tests/kernbench/kernbench.py old mode 100755 new mode 100644 diff --git a/client/tests/kernelbuild/control b/client/tests/kernelbuild/control old mode 100755 new mode 100644 diff --git a/client/tests/kernelbuild/kernelbuild.py b/client/tests/kernelbuild/kernelbuild.py old mode 100755 new mode 100644 diff --git a/client/tests/kvm/tests/stepmaker.py b/client/tests/kvm/tests/stepmaker.py old mode 100644 new mode 100755 diff --git a/client/tests/linus_stress/linus_stress.py b/client/tests/linus_stress/linus_stress.py old mode 100755 new mode 100644 diff --git a/client/tests/lmbench/lmbench.py b/client/tests/lmbench/lmbench.py old mode 100755 new mode 100644 diff --git a/client/tests/ltp/ltp.py b/client/tests/ltp/ltp.py old mode 100755 new mode 100644 diff --git a/client/tests/memory_api/memory_api.py b/client/tests/memory_api/memory_api.py old mode 100755 new mode 100644 diff --git a/client/tests/monotonic_time/monotonic_time.py b/client/tests/monotonic_time/monotonic_time.py old mode 100755 new mode 100644 diff --git a/client/tests/netperf2/netperf2.py b/client/tests/netperf2/netperf2.py old mode 100755 new mode 100644 diff --git a/client/tests/parallel_dd/control b/client/tests/parallel_dd/control old mode 100755 new mode 100644 diff --git a/client/tests/parallel_dd/parallel_dd.py b/client/tests/parallel_dd/parallel_dd.py old mode 100755 new mode 100644 diff --git a/client/tests/perfmon/perfmon.py b/client/tests/perfmon/perfmon.py old mode 100755 new mode 100644 diff --git a/client/tests/pktgen/pktgen.py b/client/tests/pktgen/pktgen.py old mode 100755 new mode 100644 diff --git a/client/tests/posixtest/posixtest.py b/client/tests/posixtest/posixtest.py old mode 100755 new mode 100644 diff --git a/client/tests/reaim/reaim.py b/client/tests/reaim/reaim.py old mode 100755 new mode 100644 diff --git a/client/tests/sleeptest/sleeptest.py b/client/tests/sleeptest/sleeptest.py old mode 100755 new mode 100644 diff --git a/client/tests/sparse/control b/client/tests/sparse/control old mode 100755 new mode 100644 diff --git a/client/tests/sparse/sparse.py b/client/tests/sparse/sparse.py old mode 100755 new mode 100644 diff --git a/client/tests/spew/spew.py b/client/tests/spew/spew.py old mode 100755 new mode 100644 diff --git a/client/tests/synctest/src/synctest.c b/client/tests/synctest/src/synctest.c old mode 100755 new mode 100644 diff --git a/client/tests/synctest/synctest.py b/client/tests/synctest/synctest.py old mode 100755 new mode 100644 index ae6da4ced9..2e5dd31746 --- a/client/tests/synctest/synctest.py +++ b/client/tests/synctest/synctest.py @@ -20,5 +20,5 @@ def run_once(self, len, loop, testdir=None): args = len + ' ' + loop output = os.path.join(self.srcdir, 'synctest ') if testdir: - os.chdir(testdir) + os.chdir(testdir) utils.system(output + args) diff --git a/client/tests/tbench/tbench.py b/client/tests/tbench/tbench.py old mode 100755 new mode 100644 diff --git a/client/tests/tsc/tsc.py b/client/tests/tsc/tsc.py old mode 100755 new mode 100644 diff --git a/client/tests/unixbench/unixbench.py b/client/tests/unixbench/unixbench.py old mode 100755 new mode 100644 diff --git a/conmux/INSTALL b/conmux/INSTALL old mode 100755 new mode 100644 diff --git a/conmux/drivers/module.mk b/conmux/drivers/module.mk old mode 100755 new mode 100644 diff --git a/conmux/drivers/reboot-cyclades b/conmux/drivers/reboot-cyclades old mode 100644 new mode 100755 diff --git a/conmux/drivers/reboot-lantronix b/conmux/drivers/reboot-lantronix old mode 100644 new mode 100755 diff --git a/conmux/drivers/reboot-laurel b/conmux/drivers/reboot-laurel old mode 100644 new mode 100755 diff --git a/conmux/drivers/x3270_glue.expect b/conmux/drivers/x3270_glue.expect old mode 100755 new mode 100644 diff --git a/conmux/examples/README b/conmux/examples/README old mode 100755 new mode 100644 diff --git a/conmux/examples/command.cf b/conmux/examples/command.cf old mode 100755 new mode 100644 diff --git a/conmux/examples/direct.cf b/conmux/examples/direct.cf old mode 100755 new mode 100644 diff --git a/conmux/examples/socket.cf b/conmux/examples/socket.cf old mode 100755 new mode 100644 diff --git a/conmux/helpers/module.mk b/conmux/helpers/module.mk old mode 100755 new mode 100644 diff --git a/contrib/modelviz.py b/contrib/modelviz.py old mode 100644 new mode 100755 diff --git a/database/db_utils_unittest.py b/database/db_utils_unittest.py old mode 100644 new mode 100755 diff --git a/frontend/client/EmbeddedTkoClient-shell b/frontend/client/EmbeddedTkoClient-shell old mode 100644 new mode 100755 diff --git a/frontend/migrations/009_add_timeout_to_jobs.py b/frontend/migrations/009_add_timeout_to_jobs.py old mode 100755 new mode 100644 diff --git a/frontend/planner/models_test.py b/frontend/planner/models_test.py old mode 100644 new mode 100755 diff --git a/mirror/trigger.py b/mirror/trigger.py old mode 100755 new mode 100644 diff --git a/new_tko/tko/models.py b/new_tko/tko/models.py index 61b24af545..d97501030c 100644 --- a/new_tko/tko/models.py +++ b/new_tko/tko/models.py @@ -330,8 +330,8 @@ def _get_label_ids_from_names(self, label_names): TestLabel.objects.filter(name__in=label_names) .values_list('name', 'id')) if len(label_ids) < len(set(label_names)): - raise ValueError('Not all labels found: %s' % - ', '.join(label_names)) + raise ValueError('Not all labels found: %s' % + ', '.join(label_names)) return dict(name_and_id for name_and_id in label_ids) diff --git a/scheduler/archive_results.py b/scheduler/archive_results.py old mode 100644 new mode 100755 diff --git a/scheduler/drone_utility_unittest.py b/scheduler/drone_utility_unittest.py old mode 100644 new mode 100755 diff --git a/scheduler/gc_stats_unittest.py b/scheduler/gc_stats_unittest.py old mode 100644 new mode 100755 diff --git a/scheduler/monitor_db_functional_test.py b/scheduler/monitor_db_functional_test.py old mode 100644 new mode 100755 diff --git a/server/autotest_unittest.py b/server/autotest_unittest.py index a066bf752a..11a987fa4f 100755 --- a/server/autotest_unittest.py +++ b/server/autotest_unittest.py @@ -316,7 +316,7 @@ def test_client_logger_process_line_package_install_fifo_failure(self): 'serve_packages_from_autoserv', type=bool).and_return(True) logger._send_tarball.expect_call('pkgname.tar.bz2', '/autotest/dest/') - + self.host.run.expect_call('echo B > /autotest/fifo3').and_raises( Exception('fifo failure')) logging.exception.expect_call(mock.is_string_comparator()) diff --git a/server/hosts/monitors/console_patterns_test.py b/server/hosts/monitors/console_patterns_test.py old mode 100644 new mode 100755 diff --git a/server/samples/autoserv_console.srv b/server/samples/autoserv_console.srv old mode 100755 new mode 100644 diff --git a/server/self-test/local_cmd b/server/self-test/local_cmd old mode 100755 new mode 100644 diff --git a/server/server_job.py b/server/server_job.py old mode 100755 new mode 100644 diff --git a/server/test.py b/server/test.py old mode 100755 new mode 100644 diff --git a/server/tests/sleeptest/sleeptest.py b/server/tests/sleeptest/sleeptest.py old mode 100755 new mode 100644 diff --git a/tko/display.py b/tko/display.py old mode 100755 new mode 100644 diff --git a/tko/frontend.py b/tko/frontend.py old mode 100755 new mode 100644 diff --git a/tko/migrations/001_initial_db.py b/tko/migrations/001_initial_db.py old mode 100755 new mode 100644 diff --git a/tko/plotgraph.py b/tko/plotgraph.py old mode 100755 new mode 100644 diff --git a/tko/reason_qualifier.py b/tko/reason_qualifier.py old mode 100755 new mode 100644 diff --git a/utils/common.py b/utils/common.py old mode 100755 new mode 100644 diff --git a/utils/compile_gwt_clients.py b/utils/compile_gwt_clients.py old mode 100644 new mode 100755 diff --git a/utils/modelviz/generate_schema_diagrams.py b/utils/modelviz/generate_schema_diagrams.py old mode 100644 new mode 100755 diff --git a/utils/release b/utils/release old mode 100644 new mode 100755 diff --git a/utils/reverify_repair_failed.py b/utils/reverify_repair_failed.py old mode 100644 new mode 100755 diff --git a/utils/service_helper.py b/utils/service_helper.py old mode 100644 new mode 100755 diff --git a/utils/tko_publish.py b/utils/tko_publish.py old mode 100644 new mode 100755 index 269dd02884..deaae560e1 --- a/utils/tko_publish.py +++ b/utils/tko_publish.py @@ -65,9 +65,9 @@ def main(): finished_jobs = afe.get_jobs(finished=True) if options.jobname_pattern: - jobname_pattern = re.compile(options.jobname_pattern) + jobname_pattern = re.compile(options.jobname_pattern) else: - jobname_pattern = None + jobname_pattern = None # for each unpublished possible jobdir find it in the database and see # if it is completed