Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rv_input: empty keycodes file causes exception #585

Open
etrunko opened this issue Apr 13, 2016 · 1 comment
Open

rv_input: empty keycodes file causes exception #585

etrunko opened this issue Apr 13, 2016 · 1 comment

Comments

@etrunko
Copy link

etrunko commented Apr 13, 2016

As far as I understand, this test sends some keycodes to the guest with different keymaps and stores the typed keycodes in a file in /tmp directory of the guest. In the end it will fetch that file and compare the results.

For some reason, the result file is empty, causing an exception in the test.

2016-04-12 21:47:12,571 remote           L0464 DEBUG| Trying to SCP with command 'scp -v -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o PreferredAuthentications=password -r  -P 22 test@\[192.168.122.46\]:/tmp/autotest-rv_input /tmp/autotest-rv_input', timeout 60s
2016-04-12 21:47:13,238 remote           L0414 DEBUG| Got password prompt, sending '123456'
2016-04-12 21:47:13,610 remote           L0441 DEBUG| SCP process terminated with status 0
2016-04-12 21:47:13,611 rv_input         L0257 INFO | Caught keycodes:[]
...
2016-04-12 21:47:19,462 stacktrace       L0039 ERROR| Reproduced traceback from: /usr/lib/python2.7/site-packages/avocado_vt/test.py:400
2016-04-12 21:47:19,463 stacktrace       L0042 ERROR| Traceback (most recent call last):
2016-04-12 21:47:19,463 stacktrace       L0042 ERROR|   File "/usr/lib/python2.7/site-packages/avocado_vt/test.py", line 176, in runTest
2016-04-12 21:47:19,463 stacktrace       L0042 ERROR|     self._runTest()
2016-04-12 21:47:19,463 stacktrace       L0042 ERROR|   File "/usr/lib/python2.7/site-packages/avocado_vt/test.py", line 318, in _runTest
2016-04-12 21:47:19,463 stacktrace       L0042 ERROR|     run_func(self, params, env)
2016-04-12 21:47:19,463 stacktrace       L0042 ERROR|   File "/usr/share/avocado/data/avocado-vt/test-providers.d/downloads/io-github-autotest-qemu/qemu/tests/rv_input.py", line 323, in run
2016-04-12 21:47:19,463 stacktrace       L0042 ERROR|     result = analyze_results(result_path, test_type)
2016-04-12 21:47:19,464 stacktrace       L0042 ERROR|   File "/usr/share/avocado/data/avocado-vt/test-providers.d/downloads/io-github-autotest-qemu/qemu/tests/rv_input.py", line 259, in analyze_results
2016-04-12 21:47:19,464 stacktrace       L0042 ERROR|     if not (test_keycodes[i] == correct_keycodes[i]):
2016-04-12 21:47:19,464 stacktrace       L0042 ERROR| IndexError: list index out of range

Full log attached.
rv_input.txt

@xutian
Copy link
Member

xutian commented Mar 20, 2017

do you still meet above issue, if yes can you change keycode file from /tmp/autotest-rv_input to ~/autotest-rv_input then have try?

Thanks,
Xu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants