diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/ci/checkout-oe.sh | 7 | ||||
-rwxr-xr-x | scripts/ci/oe-selftest.sh | 5 |
2 files changed, 10 insertions, 2 deletions
diff --git a/scripts/ci/checkout-oe.sh b/scripts/ci/checkout-oe.sh index a99f235..fdc0e48 100755 --- a/scripts/ci/checkout-oe.sh +++ b/scripts/ci/checkout-oe.sh | |||
@@ -19,9 +19,11 @@ mkdir -p updater-repo | |||
19 | 19 | ||
20 | cd updater-repo | 20 | cd updater-repo |
21 | 21 | ||
22 | repo init -m "${MANIFEST}.xml" -u "$REMOTE_SOURCE/updater-repo" | 22 | if [ -d .repo/manifests ]; then |
23 | git -C .repo/manifests reset --hard | ||
24 | fi | ||
23 | 25 | ||
24 | git -C .repo/manifests reset --hard | 26 | repo init -m "${MANIFEST}.xml" -u "$REMOTE_SOURCE/updater-repo" |
25 | 27 | ||
26 | # patch manifest: | 28 | # patch manifest: |
27 | # - add a new "ats" remote that points to "$REMOTE_SOURCE" | 29 | # - add a new "ats" remote that points to "$REMOTE_SOURCE" |
@@ -45,6 +47,7 @@ for pin in $PIN_LIST; do | |||
45 | IFS=":" | 47 | IFS=":" |
46 | read -r project rev <<< "$pin" | 48 | read -r project rev <<< "$pin" |
47 | xmlstarlet ed --omit-decl -L \ | 49 | xmlstarlet ed --omit-decl -L \ |
50 | -d "/manifest/project[@name=\"$project\"]/@revision" \ | ||
48 | -i "/manifest/project[@name=\"$project\"]/@revision" -t attr -n "revision" -v "$rev" \ | 51 | -i "/manifest/project[@name=\"$project\"]/@revision" -t attr -n "revision" -v "$rev" \ |
49 | -i "/manifest/project[@name=\"$project\"]" -t attr -n "revision" -v "$rev" \ | 52 | -i "/manifest/project[@name=\"$project\"]" -t attr -n "revision" -v "$rev" \ |
50 | "$MANIFEST_FILE" | 53 | "$MANIFEST_FILE" |
diff --git a/scripts/ci/oe-selftest.sh b/scripts/ci/oe-selftest.sh index 66b1fc9..178e7c1 100755 --- a/scripts/ci/oe-selftest.sh +++ b/scripts/ci/oe-selftest.sh | |||
@@ -17,5 +17,10 @@ export METADIR | |||
17 | . "${TEST_REPO_DIR}/meta-updater/scripts/envsetup.sh" "${TEST_MACHINE}" "${TEST_BUILD_DIR}" | 17 | . "${TEST_REPO_DIR}/meta-updater/scripts/envsetup.sh" "${TEST_MACHINE}" "${TEST_BUILD_DIR}" |
18 | 18 | ||
19 | set -x | 19 | set -x |
20 | |||
21 | # work poky around bug on sumo and thud | ||
22 | # see https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=d3a94e5b9b3c107cf54d5639071cc6609c002f67 | ||
23 | mkdir -p "tmp/log" | ||
24 | |||
20 | oe-selftest -r "$@" | 25 | oe-selftest -r "$@" |
21 | ) | 26 | ) |