From: Kefu Chai Date: Wed, 7 Mar 2018 09:16:25 +0000 (+0800) Subject: test: run 'npm' command in a directory specified by absolute path X-Git-Tag: v13.0.2~68^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=aedbbe791ffb048dabfb783efb6d9b6e0c282bbe;p=ceph.git test: run 'npm' command in a directory specified by absolute path in case developer wants to run the test in "./build" or some random directory. Signed-off-by: Kefu Chai --- diff --git a/src/pybind/mgr/dashboard_v2/run-frontend-unittests.sh b/src/pybind/mgr/dashboard_v2/run-frontend-unittests.sh index 44b1292d0124..96f5db44d03a 100755 --- a/src/pybind/mgr/dashboard_v2/run-frontend-unittests.sh +++ b/src/pybind/mgr/dashboard_v2/run-frontend-unittests.sh @@ -2,7 +2,7 @@ set -e -cd $(dirname $0)/frontend +cd $CEPH_ROOT/src/pybind/mgr/dashboard_v2/frontend npm run build -- --prod npm run test -- --browsers PhantomJS --watch=false