]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test: run 'npm' command in a directory specified by absolute path
authorKefu Chai <kchai@redhat.com>
Wed, 7 Mar 2018 09:16:25 +0000 (17:16 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 7 Mar 2018 09:27:36 +0000 (17:27 +0800)
in case developer wants to run the test in "./build" or some random
directory.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/mgr/dashboard_v2/run-frontend-unittests.sh

index 44b1292d012450d6c173c757477e67af5ac51388..96f5db44d03a9c9f987e1c72f6a7d50dd653c405 100755 (executable)
@@ -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