mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 22:16:16 +02:00
tests/nixos/fetch-git: Make the store paths unique
This commit is contained in:
parent
94eba0ebbb
commit
1254170405
2 changed files with 8 additions and 4 deletions
|
@ -1,10 +1,12 @@
|
||||||
|
{ config, ... }:
|
||||||
{
|
{
|
||||||
description = "can fetch a git repo via http";
|
description = "can fetch a git repo via http";
|
||||||
script = ''
|
script = ''
|
||||||
# add a file to the repo
|
# add a file to the repo
|
||||||
client.succeed(f"""
|
client.succeed(f"""
|
||||||
echo chiang-mai > {repo.path}/thailand \
|
echo ${config.name /* to make the git tree and store path unique */} > {repo.path}/test-case \
|
||||||
&& {repo.git} add thailand \
|
&& echo chiang-mai > {repo.path}/thailand \
|
||||||
|
&& {repo.git} add test-case thailand \
|
||||||
&& {repo.git} commit -m 'commit1'
|
&& {repo.git} commit -m 'commit1'
|
||||||
""")
|
""")
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
|
{ config, ... }:
|
||||||
{
|
{
|
||||||
description = "can fetch a git repo via ssh";
|
description = "can fetch a git repo via ssh";
|
||||||
script = ''
|
script = ''
|
||||||
# add a file to the repo
|
# add a file to the repo
|
||||||
client.succeed(f"""
|
client.succeed(f"""
|
||||||
echo chiang-mai > {repo.path}/thailand \
|
echo ${config.name /* to make the git tree and store path unique */} > {repo.path}/test-case \
|
||||||
&& {repo.git} add thailand \
|
&& echo chiang-mai > {repo.path}/thailand \
|
||||||
|
&& {repo.git} add test-case thailand \
|
||||||
&& {repo.git} commit -m 'commit1'
|
&& {repo.git} commit -m 'commit1'
|
||||||
""")
|
""")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue