summaryrefslogtreecommitdiff
path: root/test/end-to-end/gc
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2023-11-22 12:34:22 +0100
committerKlaus Aehlig <klaus.aehlig@huawei.com>2023-11-22 12:34:22 +0100
commit78bfcb6e6c31670d2188235c4acef047999cfc4e (patch)
treecbfeb62097afc35c93eac0d9fdc1e4078a5a2360 /test/end-to-end/gc
parent03e921a289bb0e19f3841ed351a270602290e97a (diff)
downloadjustbuild-78bfcb6e6c31670d2188235c4acef047999cfc4e.tar.gz
Test ["end-to-end/gc", "export"]: fix workspace layout
This end-to-end test, of course, depends on the tools, provided inside the test's working directory. The test, being end to end, constructs a workspace with multi-repository configuration with the main repo a file repsoitory at the root of the constructed work space; to be able to test exporting this repository has pragma "to_git". Move the constructed work space to sub directory to not include the tools to be tested in the work space that is gitified; one the one hand, the tested tools should not be part of the test workspace and on the other hand, this shaves off a large fraction of the test's run time.
Diffstat (limited to 'test/end-to-end/gc')
-rw-r--r--test/end-to-end/gc/export.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/end-to-end/gc/export.sh b/test/end-to-end/gc/export.sh
index 15b151ef..87ec32fd 100644
--- a/test/end-to-end/gc/export.sh
+++ b/test/end-to-end/gc/export.sh
@@ -39,6 +39,8 @@ echo -n World > $1/hello/world/tree/name.txt
EOF
chmod 755 "${TOOLS_DIR}/tree"
+mkdir work
+cd work
touch WORKSPACE
cat > TARGETS <<'EOF'