forked from lix-project/nix-eval-jobs
use outPath
This commit is contained in:
parent
77aa769aef
commit
d36d77c873
|
@ -173,11 +173,14 @@ static void worker(
|
|||
auto drvPath = drv->queryDrvPath();
|
||||
auto localStore = state.store.dynamic_pointer_cast<LocalFSStore>();
|
||||
auto storePath = localStore->parseStorePath(drvPath);
|
||||
auto outputs = drv->queryOutputs(false);
|
||||
|
||||
reply["name"] = drv->queryName();
|
||||
reply["system"] = drv->querySystem();
|
||||
reply["drvPath"] = drvPath;
|
||||
reply["storePath"] = localStore->printStorePath(storePath);
|
||||
for (auto out : outputs){
|
||||
reply["outputs"][out.first] = out.second;
|
||||
}
|
||||
|
||||
nlohmann::json meta;
|
||||
for (auto & name : drv->queryMetaNames()) {
|
||||
|
|
|
@ -28,7 +28,7 @@ def common_test(extra_args: List[str]) -> None:
|
|||
built_job = results[0]
|
||||
assert built_job["attr"] == "builtJob"
|
||||
assert built_job["name"] == "job1"
|
||||
assert built_job["storePath"].startswith("/nix/store")
|
||||
assert built_job["outputs"]["out"].startswith("/nix/store")
|
||||
assert built_job["drvPath"].endswith(".drv")
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue