blob: 9d5c89c451f50bd63765bb8d1e7e565c5e3169b8 [file] [log] [blame]
# Copyright 2016 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.
# CL:422446 fixes a bug that was resulting in /build/${BOARD}/autotest/logs to
# be a directory instead of a symlink (via chromeos-base/autotest-server
# package).
# But, gentoo's PMS spec doesn't allow an ebuild uprev to convert a directory to
# symlink (, so we need to clean
# up the directory manually.
for board_root in /build/*; do
if [[ -d "${board_root}/autotest/logs" ]]; then
sudo rm -rf "${board_root}/autotest/logs"
sudo ln -s "/var/log/autotest" "${board_root}/autotest/logs"