crosutils: let factory test uses its own results folder

The factory tests should not use default results folder, otherwise a developer
running autotests by command line would corrupt the whole factory test
framework.

Since tools/autotest cannot support additional parameters and our state (to
continue) is clear, the command is also changed to directly invoke bin/autotest.

BUG=chrome-os-partner:2378
TEST=manually patched into a factory test device and verified factory
     UI works at new boot and a reboot.

Change-Id: I9f6ef31114bdda740319072c6f9ac624f6850b95

Review URL: http://codereview.chromium.org/6529046
This commit is contained in:
Hung-Te Lin 2011-02-16 18:37:03 +08:00
parent 8dcd981bbf
commit da36382f03

View File

@ -43,9 +43,9 @@ date >>/var/log/factory.log
if [ ! -e factory_started ]; then
touch factory_started
cp -f site_tests/suite_Factory/control .
./bin/autotest control >>/var/log/factory.log 2>&1
./bin/autotest -t factory control >>/var/log/factory.log 2>&1
else
./tools/autotest >>/var/log/factory.log 2>&1
./bin/autotest -t factory -c control >>/var/log/factory.log 2>&1
fi
end script
EOF