Temporary hack to allow evaluation of automated test harness with MP images.
* Enable dutflaga/b GPIO export on Alex.
* (Temporary) Use a corp workstation as mock server address.
BUG=chromium-os:25397
TEST=Normal update behavior not affected; test scenario update on
x86-alex works against specified workstation.
Change-Id: If6741749557942d0f9c89cb6146b4f6e2a2cefbf
Reviewed-on: https://gerrit.chromium.org/gerrit/18302
Reviewed-by: Don Garrett <dgarrett@chromium.org>
Tested-by: Gilad Arnold <garnold@chromium.org>
Commit-Ready: Gilad Arnold <garnold@chromium.org>
Reviewed-by: Andrew de los Reyes <adlr@chromium.org>
diff --git a/99-gpio-dutflag.rules b/99-gpio-dutflag.rules
index 9266e20..f8b1d67 100644
--- a/99-gpio-dutflag.rules
+++ b/99-gpio-dutflag.rules
@@ -16,8 +16,8 @@
# (http://code.google.com/p/chromium-os/issues/detail?id=27077)
# - Alex:
-#ATTR{[dmi/id]product_name}=="Alex", SUBSYSTEM=="gpio", KERNEL=="gpiochip192", \
-# ENV{ID_GPIO_DUTFLAGA}="205", ENV{ID_GPIO_DUTFLAGB}="202"
+ATTR{[dmi/id]product_name}=="Alex", SUBSYSTEM=="gpio", KERNEL=="gpiochip192", \
+ ENV{ID_GPIO_DUTFLAGA}="205", ENV{ID_GPIO_DUTFLAGB}="202"
# - ZGB:
#ATTR{[dmi/id]product_name}=="ZGB", SUBSYSTEM=="gpio", KERNEL=="gpiochip192", \
diff --git a/update_attempter.cc b/update_attempter.cc
index b2f6c6e..31bc47b 100644
--- a/update_attempter.cc
+++ b/update_attempter.cc
@@ -47,9 +47,10 @@
const int UpdateAttempter::kMaxDeltaUpdateFailures = 3;
// Private test server URL w/ custom port number.
-// TODO(garnold) this is currently an arbitrary address and will change based on
-// discussion about the actual test lab configuration.
-const char* const UpdateAttempter::kTestUpdateUrl("https://10.0.0.1:70529/update");
+// TODO(garnold) This is a temporary hack to allow us to test the closed loop
+// automated update testing. To be replaced with an hard-coded local IP address.
+const char* const UpdateAttempter::kTestUpdateUrl(
+ "http://garnold.mtv.corp.google.com:8080/update");
const char* kUpdateCompletedMarker =
"/var/run/update_engine_autoupdate_completed";