running FAFT test
DUT:
OS : the latest test chrome OS
bios: the latest BIOS
Server: full layout chromeos source export BOARD=board ./setup_board --board=${BOARD} // ./build_packages --board=${BOARD}
emerge-$BOARD autotest-tests emerge-$BOARD autotest-deps
export REMOTE_IP=192.168.0.101
then run_remote_tests.sh --board=$BOARD --remote=$REMOTE_IP --servo suite:faft_bios
but always error:
04/05 01:45:52.219 ERROR|base_utils:0238| [stderr] ssh_exchange_identification: read: Connection reset by peer
04/05 01:45:58.287 ERROR|base_utils:0238| [stderr] ssh_exchange_identification: read: Connection reset by peer
04/05 01:46:04.349 ERROR|base_utils:0238| [stderr] ssh_exchange_identification: read: Connection reset by peer
04/05 01:46:10.411 ERROR|base_utils:0238| [stderr] ssh_exchange_identification: read: Connection reset by peer
04/05 01:46:16.479 ERROR|base_utils:0238| [stderr] ssh_exchange_identification: read: Connection reset by peer
04/05 01:46:22.541 ERROR|base_utils:0238| [stderr] ssh_exchange_identification: read: Connection reset by peer
04/05 01:46:27.609 ERROR|base_utils:0238| [stderr] ssh_exchange_identification: read: Connection reset by peer
04/05 01:46:27.612 ERROR| test:0523| Ignoring exception during cleanup() phase:
04/05 01:46:27.612 ERROR| traceback:0013| Traceback (most recent call last):
04/05 01:46:27.613 ERROR| traceback:0013| File "/mnt/host/source/src/third_party/autotest/files/client/common_lib/test.py", line 521, in _exec
04/05 01:46:27.614 ERROR| traceback:0013| _cherry_pick_call(self.cleanup, *args, **dargs)
04/05 01:46:27.614 ERROR| traceback:0013| File "/mnt/host/source/src/third_party/autotest/files/client/common_lib/test.py", line 628, in _cherry_pick_call
04/05 01:46:27.615 ERROR| traceback:0013| return func(*p_args, **p_dargs)
04/05 01:46:27.615 ERROR| traceback:0013| File "/mnt/host/source/src/third_party/autotest/files/server/site_tests/firmware_CorruptBothFwBodyAB/firmware_CorruptBothFwBodyAB.py", line 41, in cleanup
04/05 01:46:27.615 ERROR| traceback:0013| self.restore_firmware()
04/05 01:46:27.616 ERROR| traceback:0013| File "/mnt/host/source/src/third_party/autotest/files/server/cros/faft/faft_classes.py", line 1726, in restore_firmware
04/05 01:46:27.616 ERROR| traceback:0013| if not self.is_firmware_changed():
04/05 01:46:27.616 ERROR| traceback:0013| File "/mnt/host/source/src/third_party/autotest/files/server/cros/faft/faft_classes.py", line 1678, in is_firmware_changed
04/05 01:46:27.616 ERROR| traceback:0013| self.faft_client.bios.reload()
04/05 01:46:27.616 ERROR| traceback:0013| AttributeError: 'firmware_CorruptBothFwBodyAB' object has no attribute 'faft_client'
04/05 01:46:27.617 ERROR| test:0526| Now raising the earlier <class 'autotest_lib.client.common_lib.error.AutoservInstallError'> error
$ ssh -q root@dut exit; echo $?
It should return 0. If not, please follow the instructions of the following document:
http://www.chromium.org/chromium-os/testing/autotest-developer-faq/ssh-test-keys-setup
Tom
To unsubscribe from this group and stop receiving emails from it, send an email to faft-users+...@chromium.org.
$ run_remote_tests.sh --board=$BOARD --remote=$REMOTE_IP dummy_PassServer
Tom
$ run_remote_tests.sh --board=$BOARD --remote=$REMOTE_IP dummy_PassServer
INFO : Test results:
---------------------------------------------
dummy_PassServer [ PASSED ]
dummy_PassServer/dummy_PassServer [ PASSED ]
---------------------------------------------
$ run_remote_tests.sh --board=$BOARD --remote=$RE dummy_Pass/control
Identity added: /tmp/run_remote_tests.tEt9/autotest_key (/tmp/run_remote_tests.tEt9/autotest_key)
INFO : Detected cros_workon autotests. Building and running your autotests from /mnt/host/source/src/third_party/autotest/files. To use emerged autotest, pass --use_emerged.
>>> "dummy_Pass/control" is an ambiguous pattern. Disambiguate by passing one of these patterns instead:
^client/site_tests/dummy_Pass/control.wifichaos$
^client/site_tests/dummy_Pass/control.bluetooth$
^client/site_tests/dummy_Pass/control$
^client/site_tests/dummy_Pass/control.experimental$
so run:
$ run_remote_tests.sh --board=$BOARD --remote=$RE dummy_Pass/control.wifichaos
pass
$ run_remote_tests.sh --board=$BOARD --remote=$RE dummy_Pass/control.experimental
pass
hardware:
lan1 connects servo board, lan2 connects test server.
SW setup:
1. get the key from the chromiumos under chromiumos/src/scripts/mod_for_test_scripts/ssh_keys/testing_rsa ,then put them into ~/.ssh/
2. Host DUT_REMOTE_IP
CheckHostIP no
StrictHostKeyChecking no
IdentityFile %d/.ssh/testing_rsa
Protocol 2
3.
$ ssh root@
DUT_REMOTE_IPWarning: Permanently added '172.22.50.42' (RSA) to the list of known hosts.
Last login: Mon Mar 17 14:21:30 PDT 2014 from 172.18.72.8 on ssh
localhost ~ #
4.
$ ssh -q root@DUT_REMOTE_IP exit; echo $?2.~/.ssh/config:
Host DUT_REMOTE_IP
CheckHostIP no
StrictHostKeyChecking no
IdentityFile %d/.ssh/testing_rsa
Protocol 2