blob: 1cade53e7694e25f5ea4dfaece06ec7b4e373b20 [file] [log] [blame]
Derick Montague9b27bc02021-03-16 21:11:26 -05001#!/bin/bash
2# Run GUI Unit Tests as part of the CI Build process#
3
4set -e
5
6# When called from openbmc-build-scripts, the `pwd` could be anywhere, but
7# the root of the repo is passed in the first argument. Switch to the repo
8# root so npm/git run in the right place.
9if [ -n "$1" ]; then
10 cd "$1"
11fi
12
13# It is expected that the format-code script was already run as part of the CI
14# so the node modules needed to run this script will be installed
15npm run test:unit