Steven Silvester 6 years ago
parent
commit
df436755ba
2 changed files with 4 additions and 6 deletions
  1. 2 2
      tests/convert-to-jest.js
  2. 2 4
      tests/test-terminal/run-test.py

+ 2 - 2
tests/convert-to-jest.js

@@ -74,12 +74,12 @@ utils.writeJSONFile(path.join(testSrc, 'tsconfig.json'), tsData);
 
 // Git remove old tests infra
 ['karma-cov.conf.js', 'karma.conf.js', 'run-test.py'].forEach(fname => {
-  utils.run(`git rm -f ./test-${name}/${fname}`);
+  utils.run(`git rm -f ./test-${name}/${fname} || true`);
 });
 
 // Copy common files from coreutils
 ['run.py', 'babel.config.js'].forEach(fname => {
-  fs.copySync(path.join(coreUtils, fname, path.join(testSrc, fname)));
+  fs.copySync(path.join(coreUtils, fname), path.join(testSrc, fname));
 });
 
 // Add new files to git

+ 2 - 4
tests/test-terminal/run-test.py

@@ -1,10 +1,8 @@
 # Copyright (c) Jupyter Development Team.
 # Distributed under the terms of the Modified BSD License.
 
-import os
+import os.path as osp
 from jupyterlab.tests.test_app import run_karma
 
-HERE = os.path.realpath(os.path.dirname(__file__))
-
 if __name__ == '__main__':
-    run_karma(HERE)
+    run_karma(osp.dirname(osp.realpath(__file__)))