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