[autotest] Add a function to install multiple packages

Each package install needs to run apt-get update, which takes extra time to run.
The new function takes in a list of packages and python packages, so `apt-get
update` only needs to run once.

BUG=chromium:508314
TEST=sudo python site_utils/lxc_functional_test.py -v

Change-Id: Ibfcfa24696f6e217820679f5405da67529ef2c45
Reviewed-on: https://chromium-review.googlesource.com/284597
Trybot-Ready: Dan Shi <dshi@chromium.org>
Tested-by: Dan Shi <dshi@chromium.org>
Reviewed-by: Simran Basi <sbasi@chromium.org>
Commit-Queue: Dan Shi <dshi@chromium.org>
2 files changed