Skip to content

Commit 451ccad

Browse files
committed
Remove package.json and package-lock.json when running tests. XXX do not land.
1 parent 6dfc5ee commit 451ccad

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/runner.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,11 @@ def configure():
392392
def main(args):
393393
options = parse_args(args)
394394

395+
if os.path.isfile(utils.path_from_root('package.json')):
396+
os.remove(utils.path_from_root('package.json'))
397+
if os.path.isfile(utils.path_from_root('package-lock.json')):
398+
os.remove(utils.path_from_root('package-lock.json'))
399+
395400
# Some options make sense being set in the environment, others not-so-much.
396401
# TODO(sbc): eventually just make these command-line only.
397402
if os.getenv('EMTEST_SAVE_DIR'):

0 commit comments

Comments
 (0)