Skip to content

Commit

Permalink
build: add option to filter jest tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vindard committed Feb 11, 2024
1 parent 481c09d commit 278aafd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion toolchains/workspace-pnpm/run_npm_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,14 @@ def merge_env_from_file(file_path):
)

args = parser.parse_args()

env = merge_env_from_file(args.env_file)

bin_args = args.args[1:] # ignore '--' separator
if env.get("TEST"):
bin_args.append(env.get("TEST"))
cmd = [os.path.abspath(args.bin), *bin_args]

env = merge_env_from_file(args.env_file)
exit_code = subprocess.call(cmd, cwd=args.cwd, env=env)

sys.exit(exit_code)

0 comments on commit 278aafd

Please sign in to comment.