tests/nixos/fetch-git: Memoize -> save

Memoization is for thunk-like behavior whereas this is executed eagerly.
This commit is contained in:
Robert Hensing 2024-01-18 13:42:41 +01:00
parent fd41979d78
commit 94eba0ebbb
2 changed files with 2 additions and 2 deletions

View file

@ -8,7 +8,7 @@
&& {repo.git} commit -m 'commit1' && {repo.git} commit -m 'commit1'
""") """)
# memoize the revision # save the revision
rev1 = client.succeed(f""" rev1 = client.succeed(f"""
{repo.git} rev-parse HEAD {repo.git} rev-parse HEAD
""").strip() """).strip()

View file

@ -8,7 +8,7 @@
&& {repo.git} commit -m 'commit1' && {repo.git} commit -m 'commit1'
""") """)
# memoize the revision # save the revision
rev1 = client.succeed(f""" rev1 = client.succeed(f"""
{repo.git} rev-parse HEAD {repo.git} rev-parse HEAD
""").strip() """).strip()