From 70dc38b4c8c9d5c0870b091ad114053f0f2da378 Mon Sep 17 00:00:00 2001 From: Benson Leung Date: Thu, 1 Jul 2010 10:55:45 -0700 Subject: [PATCH] Create a symlink for the external_extensions.json. power_LoadTest will use this symlink to load a test extension at login. BUG=None TEST=power_LoadTest Signed-off-by: Benson Leung Review URL: http://codereview.chromium.org/2877007 --- mod_for_test_scripts/750enableExternalExtensions | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 mod_for_test_scripts/750enableExternalExtensions diff --git a/mod_for_test_scripts/750enableExternalExtensions b/mod_for_test_scripts/750enableExternalExtensions new file mode 100755 index 0000000000..9d3b33827e --- /dev/null +++ b/mod_for_test_scripts/750enableExternalExtensions @@ -0,0 +1,15 @@ +#!/bin/bash + +# Copyright (c) 2010 The Chromium OS Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. +# +# Create a symlink to external_extensions.json to allow autotests +# to launch a packaged extension at login. + +echo "Creating external_extensions.json symlink" +LINK_TARGET="/home/autotest/tests/external_extensions.json" +EXT_DIR="${ROOT_FS_DIR}/opt/google/chrome/extensions" +FILE="${EXT_DIR}/external_extensions.json" +mkdir -p $EXT_DIR +ln -sf $LINK_TARGET $FILE