Hi, all I try to integrate mediakit_sanity into AutoQA, but every time I run it, it gives the following error. I also tried to run the exist test, it also gives the same error as below:
Error: Can't evaluate test '__init__.py': [Errno 20] Not a directory: '/usr/share/autotest/client/site_tests/__init__.py/control.autoqa' File "/usr/bin/autoqa", line 185, in resolve_tests test_vars[test] = eval_test_vars(test, default_test_vars) File "/usr/bin/autoqa", line 139, in eval_test_vars cfile = open(os.path.join(conf['testdir'], test, 'control.autoqa'))
Do you have any idea about this? __init__.py is an empty file.
Thanks, Hongqing YANG
----- Original Message -----
From: "Hongqing Yang" hoyang@redhat.com To: "AutoQA development" autoqa-devel@lists.fedorahosted.org Sent: Friday, August 26, 2011 4:44:38 PM Subject: question about AutoQA test integration Hi, all I try to integrate mediakit_sanity into AutoQA, but every time I run it, it gives the following error. I also tried to run the exist test, it also gives the same error as below:
Error: Can't evaluate test '__init__.py': [Errno 20] Not a directory: '/usr/share/autotest/client/site_tests/__init__.py/control.autoqa' File "/usr/bin/autoqa", line 185, in resolve_tests test_vars[test] = eval_test_vars(test, default_test_vars) File "/usr/bin/autoqa", line 139, in eval_test_vars cfile = open(os.path.join(conf['testdir'], test, 'control.autoqa'))
Do you have any idea about this? __init__.py is an empty file.
it is weird , Now the error message disappears, the following occurred instead:
17:29:44 DEBUG| Traceback (most recent call last): File "/usr/share/autotest/client/bin/parallel.py", line 22, in fork_start raise error.UnhandledTestError(e) UnhandledTestError: Unhandled AttributeError: 'module' object has no attribute 'mediakit_sanity' Traceback (most recent call last): File "/usr/share/autotest/client/bin/parallel.py", line 18, in fork_start l() File "/usr/share/autotest/client/bin/job.py", line 522, in <lambda> l = lambda : test.runtest(self, url, tag, args, dargs) File "/usr/share/autotest/client/bin/test.py", line 115, in runtest job.sysinfo.log_after_each_iteration) File "/usr/share/autotest/client/common_lib/test.py", line 692, in runtest local_namespace, global_namespace) File "<string>", line 1, in <module> AttributeError: 'module' object has no attribute 'mediakit_sanity'
Did I miss anything?
Thanks, Hongqing
----- Original Message -----
From: "Hongqing Yang" hoyang@redhat.com To: "AutoQA development" autoqa-devel@lists.fedorahosted.org Sent: Friday, August 26, 2011 5:31:45 PM Subject: Re: question about AutoQA test integration ----- Original Message -----
From: "Hongqing Yang" hoyang@redhat.com To: "AutoQA development" autoqa-devel@lists.fedorahosted.org Sent: Friday, August 26, 2011 4:44:38 PM Subject: question about AutoQA test integration Hi, all I try to integrate mediakit_sanity into AutoQA, but every time I run it, it gives the following error. I also tried to run the exist test, it also gives the same error as below:
Error: Can't evaluate test '__init__.py': [Errno 20] Not a directory: '/usr/share/autotest/client/site_tests/__init__.py/control.autoqa' File "/usr/bin/autoqa", line 185, in resolve_tests test_vars[test] = eval_test_vars(test, default_test_vars) File "/usr/bin/autoqa", line 139, in eval_test_vars cfile = open(os.path.join(conf['testdir'], test, 'control.autoqa'))
Do you have any idea about this? __init__.py is an empty file.
it is weird , Now the error message disappears, the following occurred instead:
17:29:44 DEBUG| Traceback (most recent call last): File "/usr/share/autotest/client/bin/parallel.py", line 22, in fork_start raise error.UnhandledTestError(e) UnhandledTestError: Unhandled AttributeError: 'module' object has no attribute 'mediakit_sanity' Traceback (most recent call last): File "/usr/share/autotest/client/bin/parallel.py", line 18, in fork_start l() File "/usr/share/autotest/client/bin/job.py", line 522, in <lambda> l = lambda : test.runtest(self, url, tag, args, dargs) File "/usr/share/autotest/client/bin/test.py", line 115, in runtest job.sysinfo.log_after_each_iteration) File "/usr/share/autotest/client/common_lib/test.py", line 692, in runtest local_namespace, global_namespace) File "<string>", line 1, in <module> AttributeError: 'module' object has no attribute 'mediakit_sanity'
Did I miss anything?
Thanks, Hongqing
It seems if I run ./watcher.py, the first and second errors occur. If I run autoqa post-tree-compose, only the second error occurs.
----- Original Message -----
From: "Hongqing Yang" hoyang@redhat.com To: "AutoQA development" autoqa-devel@lists.fedorahosted.org Sent: Friday, August 26, 2011 5:31:45 PM Subject: Re: question about AutoQA test integration ----- Original Message -----
From: "Hongqing Yang" hoyang@redhat.com To: "AutoQA development" autoqa-devel@lists.fedorahosted.org Sent: Friday, August 26, 2011 4:44:38 PM Subject: question about AutoQA test integration Hi, all I try to integrate mediakit_sanity into AutoQA, but every time I run it, it gives the following error. I also tried to run the exist test, it also gives the same error as below:
Error: Can't evaluate test '__init__.py': [Errno 20] Not a directory: '/usr/share/autotest/client/site_tests/__init__.py/control.autoqa' File "/usr/bin/autoqa", line 185, in resolve_tests test_vars[test] = eval_test_vars(test, default_test_vars) File "/usr/bin/autoqa", line 139, in eval_test_vars cfile = open(os.path.join(conf['testdir'], test, 'control.autoqa'))
Do you have any idea about this? __init__.py is an empty file.
it is weird , Now the error message disappears, the following occurred instead:
17:29:44 DEBUG| Traceback (most recent call last): File "/usr/share/autotest/client/bin/parallel.py", line 22, in fork_start raise error.UnhandledTestError(e) UnhandledTestError: Unhandled AttributeError: 'module' object has no attribute 'mediakit_sanity' Traceback (most recent call last): File "/usr/share/autotest/client/bin/parallel.py", line 18, in fork_start l() File "/usr/share/autotest/client/bin/job.py", line 522, in <lambda> l = lambda : test.runtest(self, url, tag, args, dargs) File "/usr/share/autotest/client/bin/test.py", line 115, in runtest job.sysinfo.log_after_each_iteration) File "/usr/share/autotest/client/common_lib/test.py", line 692, in runtest local_namespace, global_namespace) File "<string>", line 1, in <module> AttributeError: 'module' object has no attribute 'mediakit_sanity'
Did I miss anything?
Thanks, Hongqing
It seems if I run ./watcher.py, the first and second errors occur. If I run autoqa post-tree-compose, only the second error occurs.
I tried to look at your code, but it seems you have branched from master in April and you haven't merged the changes since then (exclamation mark). Is it so?
If you really haven't merged any changes since that time, you are running a very old AutoQA version and your test will probably won't work with latest AutoQA anyway. Please merge/rebase your branch first and do it regularly. If you develop just the mediakit_sanity test and don't change the libraries, there should be no problem in merging/rebasing often.
Try running your test with the latest AutoQA code, it will probably change the tracebacks.
----- Original Message -----
From: "Kamil Paral" kparal@redhat.com To: "AutoQA development" autoqa-devel@lists.fedorahosted.org Sent: Monday, August 29, 2011 6:01:02 PM Subject: Re: question about AutoQA test integration
----- Original Message -----
From: "Hongqing Yang" hoyang@redhat.com To: "AutoQA development" autoqa-devel@lists.fedorahosted.org Sent: Friday, August 26, 2011 5:31:45 PM Subject: Re: question about AutoQA test integration ----- Original Message -----
From: "Hongqing Yang" hoyang@redhat.com To: "AutoQA development" autoqa-devel@lists.fedorahosted.org Sent: Friday, August 26, 2011 4:44:38 PM Subject: question about AutoQA test integration Hi, all I try to integrate mediakit_sanity into AutoQA, but every time I run it, it gives the following error. I also tried to run the exist test, it also gives the same error as below:
Error: Can't evaluate test '__init__.py': [Errno 20] Not a directory: '/usr/share/autotest/client/site_tests/__init__.py/control.autoqa' File "/usr/bin/autoqa", line 185, in resolve_tests test_vars[test] = eval_test_vars(test, default_test_vars) File "/usr/bin/autoqa", line 139, in eval_test_vars cfile = open(os.path.join(conf['testdir'], test, 'control.autoqa'))
Do you have any idea about this? __init__.py is an empty file.
it is weird , Now the error message disappears, the following occurred instead:
17:29:44 DEBUG| Traceback (most recent call last): File "/usr/share/autotest/client/bin/parallel.py", line 22, in fork_start raise error.UnhandledTestError(e) UnhandledTestError: Unhandled AttributeError: 'module' object has no attribute 'mediakit_sanity' Traceback (most recent call last): File "/usr/share/autotest/client/bin/parallel.py", line 18, in fork_start l() File "/usr/share/autotest/client/bin/job.py", line 522, in
<lambda> l = lambda : test.runtest(self, url, tag, args, dargs) File "/usr/share/autotest/client/bin/test.py", line 115, in runtest job.sysinfo.log_after_each_iteration) File "/usr/share/autotest/client/common_lib/test.py", line 692, in runtest local_namespace, global_namespace) File "<string>", line 1, in <module> AttributeError: 'module' object has no attribute 'mediakit_sanity'
Did I miss anything?
Thanks, Hongqing
It seems if I run ./watcher.py, the first and second errors occur. If I run autoqa post-tree-compose, only the second error occurs.
I tried to look at your code, but it seems you have branched from master in April and you haven't merged the changes since then (exclamation mark). Is it so?
If you really haven't merged any changes since that time, you are running a very old AutoQA version and your test will probably won't work with latest AutoQA anyway. Please merge/rebase your branch first and do it regularly. If you develop just the mediakit_sanity test and don't change the libraries, there should be no problem in merging/rebasing often.
Try running your test with the latest AutoQA code, it will probably change the tracebacks. _______________________________________________
I have merged the master last week, just did not push it. now the autotest works fine, Thanks a lot.
Hi, all I try to integrate mediakit_sanity into AutoQA, but every time I run it, it gives the following error. I also tried to run the exist test, it also gives the same error as below:
Error: Can't evaluate test '__init__.py': [Errno 20] Not a directory: '/usr/share/autotest/client/site_tests/__init__.py/control.autoqa' File "/usr/bin/autoqa", line 185, in resolve_tests test_vars[test] = eval_test_vars(test, default_test_vars) File "/usr/bin/autoqa", line 139, in eval_test_vars cfile = open(os.path.join(conf['testdir'], test, 'control.autoqa'))
Do you have any idea about this? __init__.py is an empty file.
mediakit_sanity.py#29: class install(AutoQATest)
The class is named incorrectly, it must be named mediakit_sanity.
----- Original Message -----
From: "Kamil Paral" kparal@redhat.com To: "AutoQA development" autoqa-devel@lists.fedorahosted.org Sent: Monday, August 29, 2011 5:51:20 PM Subject: Re: question about AutoQA test integration
Hi, all I try to integrate mediakit_sanity into AutoQA, but every time I run it, it gives the following error. I also tried to run the exist test, it also gives the same error as below:
Error: Can't evaluate test '__init__.py': [Errno 20] Not a directory: '/usr/share/autotest/client/site_tests/__init__.py/control.autoqa' File "/usr/bin/autoqa", line 185, in resolve_tests test_vars[test] = eval_test_vars(test, default_test_vars) File "/usr/bin/autoqa", line 139, in eval_test_vars cfile = open(os.path.join(conf['testdir'], test, 'control.autoqa'))
Do you have any idea about this? __init__.py is an empty file.
mediakit_sanity.py#29: class install(AutoQATest)
The class is named incorrectly, it must be named mediakit_sanity.
Kamil,
Thanks for point that out, I copied that from the install test, forgot to modify it.
Hongqing
autoqa-devel@lists.fedorahosted.org