Make test portable

This commit is contained in:
jpic 2020-01-31 19:35:44 +01:00
parent 9eb0f5ffaa
commit d47ab86873
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ def test_build_copy():
script_test( script_test(
'build_copy', 'build_copy',
Base('alpine'), Base('alpine'),
Copy(os.path.dirname(__file__), '/app'), Copy('/test', '/app'),
) )

View File

@ -16,4 +16,4 @@ mnt=$(buildah mount $ctr)
echo "Copy.init_build" echo "Copy.init_build"
echo "Copy.build" echo "Copy.build"
buildah run --user root $ctr -- mkdir -p /app buildah run --user root $ctr -- mkdir -p /app
cp -a /home/jpic/src/podctl/tests $mnt/app cp -a /test $mnt/app