mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-15 06:15:57 +00:00
Merge feat/install-4-backup into feat/install-5-native
This commit is contained in:
commit
20f4729571
2 files changed
+11
-6
No files matched your search
@@ -130,7 +130,8 @@ class TestVolumes:
|
||||
assert args[-2] == "-c"
|
||||
assert "tar xf - -C /data" in args[-1]
|
||||
command = args[-1]
|
||||
assert command.index("tar xf - -C /stage") < command.index("find /data -mindepth 1 -delete"), (
|
||||
assert "mkdir -p /tmp/" in command, "the image does not run as root, so staging goes under /tmp"
|
||||
assert command.index("tar xf - -C /tmp/") < command.index("find /data -mindepth 1 -delete"), (
|
||||
"the incoming tar is unpacked outside the volume first, so a corrupt one leaves it alone"
|
||||
)
|
||||
assert runner.streams[0][1] is not None, "the tar is fed in on stdin"
|
||||
|
||||
Reference in new issue
Block a user