Adding this so that we can make sure that `rpm-ostree rebase` tests the arguments passed in.
19 lines
407 B
Bash
Executable file
19 lines
407 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -euo pipefail
|
|
|
|
echo 'Running rpm-ostree'
|
|
|
|
if [ "$1" = "rebase" ]; then
|
|
if [ "$2" = "ostree-unverified-image:oci-archive:$BB_TEST_LOCAL_IMAGE" ]; then
|
|
echo "Rebased to local image $BB_TEST_LOCAL_IMAGE"
|
|
else
|
|
echo "Failed to rebase"
|
|
exit 1
|
|
fi
|
|
elif [ "$1" = "upgrade" ]; then
|
|
echo "Performing upgrade for $BB_TEST_LOCAL_IMAGE"
|
|
else
|
|
echo "Arg $1 is not recognized"
|
|
exit 1
|
|
fi
|