{"action":"opened","issue":{"url":"https://api.github.com/repos/avocado-framework/avocado-vt/issues/534","repository_url":"https://api.github.com/repos/avocado-framework/avocado-vt","labels_url":"https://api.github.com/repos/avocado-framework/avocado-vt/issues/534/labels{/name}","comments_url":"https://api.github.com/repos/avocado-framework/avocado-vt/issues/534/comments","events_url":"https://api.github.com/repos/avocado-framework/avocado-vt/issues/534/events","html_url":"https://github.com/avocado-framework/avocado-vt/issues/534","id":156949082,"number":534,"title":"Debuging for Unable to discover url(s)","user":{"login":"liwbj","id":19383187,"avatar_url":"https://avatars.githubusercontent.com/u/19383187?v=3","gravatar_id":"","url":"https://api.github.com/users/liwbj","html_url":"https://github.com/liwbj","followers_url":"https://api.github.com/users/liwbj/followers","following_url":"https://api.github.com/users/liwbj/following{/other_user}","gists_url":"https://api.github.com/users/liwbj/gists{/gist_id}","starred_url":"https://api.github.com/users/liwbj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liwbj/subscriptions","organizations_url":"https://api.github.com/users/liwbj/orgs","repos_url":"https://api.github.com/users/liwbj/repos","events_url":"https://api.github.com/users/liwbj/events{/privacy}","received_events_url":"https://api.github.com/users/liwbj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-26T10:07:03Z","updated_at":"2016-05-26T10:07:03Z","closed_at":null,"body":"I added my tests-example.cfg  file and try to run a qemu script but got the failed as below.\r\nI am sure I have enable qemu bootstrap and I can find it by avocado list.\r\n\r\n\r\n[root@zs95kv2 avocado]# ./scripts/avocado run --vt-type qemu --vt-config /usr/share/avocado/data/avocado-vt/backends/qemu/cfg/tests-example.cfg type_specific.io-github-autotest-qemu.boot_time\r\nUnable to discover url(s) 'type_specific.io-github-autotest-qemu.boot_time' with loader plugins(s) 'file', 'vt', 'external', try running 'avocado list -V type_specific.io-github-autotest-qemu.boot_time' to see the details.\r\n\r\nI try to debug this problem, and I found /avocado/avocado-vt/avocado_vt/loader.py did not execute as expected. On for params in (_ for _ in cartesian_parser.get_dicts()):.\r\nProgram did not run into this loop. And I am not sure what it purpose(what is _ for _ ?), and how can I debug this statement. \r\n\r\nIf you have any comments, please let me know.\r\n\r\n    def discover(self, url, which_tests=loader.DEFAULT):\r\n        print 'liwbj avocado-vt discover'\r\n        print url\r\n        try:\r\n            cartesian_parser = self._get_parser()\r\n            print 'liwbj cartesian_parser'\r\n            print cartesian_parser\r\n        except Exception, details:\r\n            raise EnvironmentError(details)\r\n        if url is not None:\r\n            try:\r\n                cartesian_parser.only_filter(url)\r\n            # If we have a LexerError, this means\r\n            # the url passed is invalid in the cartesian\r\n            # config parser, hence it should be ignored.\r\n            # just return an empty params list and let\r\n            # the other test plugins to handle the URL.\r\n            except cartesian_config.ParserError:\r\n                print 'liwbj cartesian_parser.only_filter(url) error'\r\n                return []\r\n        elif which_tests is loader.DEFAULT and not self.args.vt_config:\r\n            # By default don't run anythinig unless vt_config provided\r\n            return []\r\n        # Create test_suite\r\n        test_suite = []\r\n        print \"liwbj before loop\"\r\n        print cartesian_parser\r\n        print cartesian_parser.get_dicts()\r\n        for params in (_ for _ in cartesian_parser.get_dicts()):\r\n            # Evaluate the proper avocado-vt test name\r\n            test_name = None\r\n            print 'liwbj params'\r\n\r\n\r\n"}}
{"actor":{"display_login":"liwbj"}}