integration-tests: No need to sort

This commit is contained in:
Zhaofeng Li 2021-12-18 14:35:06 -08:00
parent b52ac7e94f
commit d5c6f7cb0c

View file

@ -139,9 +139,9 @@ let
deployer.succeed("cp --no-preserve=mode -r ${bundle} /tmp/bundle && chmod u+w /tmp/bundle") deployer.succeed("cp --no-preserve=mode -r ${bundle} /tmp/bundle && chmod u+w /tmp/bundle")
orig_store_paths = set(deployer.succeed("ls /nix/store | sort").strip().split("\n")) orig_store_paths = set(deployer.succeed("ls /nix/store").strip().split("\n"))
def get_new_store_paths(): def get_new_store_paths():
cur_store_paths = set(deployer.succeed("ls /nix/store | sort").strip().split("\n")) cur_store_paths = set(deployer.succeed("ls /nix/store").strip().split("\n"))
new_store_paths = cur_store_paths.difference(orig_store_paths) new_store_paths = cur_store_paths.difference(orig_store_paths)
deployer.log(f"{len(new_store_paths)} store paths were created") deployer.log(f"{len(new_store_paths)} store paths were created")