Skip to content

Commit

Permalink
tests/nixos/fetch-git: Make the store paths unique
Browse files Browse the repository at this point in the history
  • Loading branch information
roberth committed Jan 18, 2024
1 parent 94eba0e commit 1254170
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions tests/nixos/fetch-git/test-cases/http-simple/default.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{ config, ... }:
{
description = "can fetch a git repo via http";
script = ''
# add a file to the repo
client.succeed(f"""
echo chiang-mai > {repo.path}/thailand \
&& {repo.git} add thailand \
echo ${config.name /* to make the git tree and store path unique */} > {repo.path}/test-case \
&& echo chiang-mai > {repo.path}/thailand \
&& {repo.git} add test-case thailand \
&& {repo.git} commit -m 'commit1'
""")
Expand Down
6 changes: 4 additions & 2 deletions tests/nixos/fetch-git/test-cases/ssh-simple/default.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{ config, ... }:
{
description = "can fetch a git repo via ssh";
script = ''
# add a file to the repo
client.succeed(f"""
echo chiang-mai > {repo.path}/thailand \
&& {repo.git} add thailand \
echo ${config.name /* to make the git tree and store path unique */} > {repo.path}/test-case \
&& echo chiang-mai > {repo.path}/thailand \
&& {repo.git} add test-case thailand \
&& {repo.git} commit -m 'commit1'
""")
Expand Down

0 comments on commit 1254170

Please sign in to comment.