summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-01-13 13:34:27 +0200
committerLars Wirzenius <liw@liw.fi>2022-01-13 13:34:27 +0200
commit63a12998f097a7c38e441cc46b0c66cfe7f9df1b (patch)
tree62fbb109398c01d359684309c91d0f0dcfb64cae
parent808287b6d45e52893b3c09cc5d16c7cf74c6670b (diff)
downloadpuomi-63a12998f097a7c38e441cc46b0c66cfe7f9df1b.tar.gz
drop: more test env stuff
Sponsored-by: author
-rw-r--r--puomi.py25
-rw-r--r--puomi.yaml4
2 files changed, 0 insertions, 29 deletions
diff --git a/puomi.py b/puomi.py
deleted file mode 100644
index 9760bb0..0000000
--- a/puomi.py
+++ /dev/null
@@ -1,25 +0,0 @@
-import logging
-import os
-import shutil
-
-
-def env_setup(ctx):
- logging.info("setting up test directory for router testing")
-
- srcdir = globals()["srcdir"]
-
- # Copy env/ssh/ from source dir, which has SSH config and keys.
- ssh = os.path.join(srcdir, "env", "ssh")
- dst = os.path.join(os.getcwd(), ".ssh")
- logging.debug(f"copy {ssh} to {dst}")
- shutil.copytree(ssh, dst)
-
- # The config refers to ssh/ed25519 as the key to use. However, the
- # directory is actually .ssh here so that the SSH client finds it
- # automatically. Create a symlink so both forms work.
- os.symlink(".ssh", "ssh")
-
- # Set permissions on the key files, so that the SSH client isn't upset if
- # they're lax. Git doesn't preserve the permissions correctly.
- os.chmod(".ssh/ed25519", 0o600)
- os.chmod(".ssh/ed25519.pub", 0o600)
diff --git a/puomi.yaml b/puomi.yaml
deleted file mode 100644
index a3d2c2d..0000000
--- a/puomi.yaml
+++ /dev/null
@@ -1,4 +0,0 @@
-- given: "a router testing environment"
- impl:
- python:
- function: env_setup