Skip to content

Commit

Permalink
fix(ci): fix run_feature_combos_test.py (#3301)
Browse files Browse the repository at this point in the history
Signed-off-by: Dori Medini <[email protected]>
  • Loading branch information
dorimedini-starkware authored Jan 14, 2025
1 parent 8c46547 commit 7ce508a
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions scripts/run_feature_combos_test.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
#!/bin/env python3

import subprocess
from typing import List
from tests_utils import get_workspace_packages


def build_without_features(package: str):
cmd = f"cargo build --package {package}"
print(f"Running '{cmd}'", flush=True)
def run_command(cmd: List[str]):
print(f"Running '{' '.join(cmd)}'", flush=True)
subprocess.run(cmd, check=True)


def build_without_features(package: str):
run_command(cmd=["cargo", "build", "--package", package])


def build_with_all_features(package: str):
cmd = f"cargo build --all-features --package {package}"
print(f"Running '{cmd}'", flush=True)
subprocess.run(cmd, check=True)
run_command(cmd=["cargo", "build", "--all-features", "--package", package])


def main():
Expand Down

0 comments on commit 7ce508a

Please sign in to comment.