#!/bin/bash
# Copyright 2022 The ChromiumOS Authors.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# Runs all the unit tests in the util dir. Uses relative paths, so don't run
# from any ebuild.

# Show commands being run.
set -x

# Exit if any command exits non-zero.
set -e

# cd to the ec directory.
cd "$(dirname "$(realpath -e "${BASH_SOURCE[0]}")")"/..

# Run pytest
pytest util "$@"

# Run shell tests
cd util
./test-inject-keys.sh

#!/bin/bash
# Copyright 2022 The ChromiumOS Authors.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# Runs all the unit tests in the util dir. Uses relative paths, so don't run
# from any ebuild.

# Show commands being run.
set -x

# Exit if any command exits non-zero.
set -e

# cd to the ec directory.
cd "$(dirname "$(realpath -e "${BASH_SOURCE[0]}")")"/..

# Run shell tests
cd util
./test-inject-keys.sh

Remove util pytests from CQ
ec: Remove util pytests from CQ

This is a partial revert of 3ee8dd3d69a467e695f4263d0aee1ebb26fced76

Remove the python unit tests from util/run_tests.sh because
test_kconfig_check is flaky.

BRANCH=None
BUG=b:238773780
TEST=util/run_tests.sh

Signed-off-by: Jeremy Bettis <4df7b5147fee087dca33c181f288ee7dbf56e022@google.com>
Change-Id: I8b3038e53d9767cd49a54ad0e1b94f417d6ff20d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3763780
Reviewed-by: Keith Short <f6d578f97033c25f1206cb57d52f358974c82954@chromium.org>
Tested-by: Jeremy Bettis <4df7b5147fee087dca33c181f288ee7dbf56e022@chromium.org>
Commit-Queue: Jack Rosenthal <d3f605bef1867f59845d4ce6e4f83b8dc9e4e0ae@chromium.org>
Auto-Submit: Jeremy Bettis <4df7b5147fee087dca33c181f288ee7dbf56e022@chromium.org>
Commit-Queue: Jeremy Bettis <4df7b5147fee087dca33c181f288ee7dbf56e022@chromium.org>
Reviewed-by: Jack Rosenthal <d3f605bef1867f59845d4ce6e4f83b8dc9e4e0ae@chromium.org>
Commit-Queue: Keith Short <f6d578f97033c25f1206cb57d52f358974c82954@chromium.org>
