- with log("Loading %s..." % drv):
- process = subprocess.Popen(["nix",
- "--experimental-features",
- "nix-command",
- "show-derivation",
- "/nix/store/" + drv],
- stdout=subprocess.PIPE)
- assert process.stdout
- info = json.load(process.stdout)
- assert process.wait() == 0
+ with log(f"Loading {drv}..."):
+ with subprocess.Popen(
+ ["nix", "--experimental-features", "nix-command",
+ "show-derivation", "/nix/store/" + drv],
+ stdout=subprocess.PIPE) as process:
+ assert process.stdout
+ info = json.load(process.stdout)
+ assert process.wait() == 0