From d47ab86873e1cb8b1aba86340fea810454174b62 Mon Sep 17 00:00:00 2001 From: jpic Date: Fri, 31 Jan 2020 19:35:44 +0100 Subject: [PATCH] Make test portable --- tests/test_build.py | 2 +- tests/test_build_copy.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_build.py b/tests/test_build.py index fe3cd69..d7f5210 100644 --- a/tests/test_build.py +++ b/tests/test_build.py @@ -70,7 +70,7 @@ def test_build_copy(): script_test( 'build_copy', Base('alpine'), - Copy(os.path.dirname(__file__), '/app'), + Copy('/test', '/app'), ) diff --git a/tests/test_build_copy.sh b/tests/test_build_copy.sh index e99f522..84c46dc 100644 --- a/tests/test_build_copy.sh +++ b/tests/test_build_copy.sh @@ -16,4 +16,4 @@ mnt=$(buildah mount $ctr) echo "Copy.init_build" echo "Copy.build" buildah run --user root $ctr -- mkdir -p /app -cp -a /home/jpic/src/podctl/tests $mnt/app \ No newline at end of file +cp -a /test $mnt/app \ No newline at end of file