tests: Drop conditionals for Rust enablement
We now hard require it, so change these tests to do so as well. Closes: #1544 Approved by: jlebon
This commit is contained in:
parent
651a9e01f4
commit
fe87ad4f29
@ -33,17 +33,13 @@ echo "ok autovar"
|
||||
ostree --repo=${repobuild} cat ${treeref} /usr/lib/systemd/system-preset/40-rpm-ostree-auto.preset > preset.txt
|
||||
assert_file_has_content preset.txt '^enable ostree-remount.service$'
|
||||
|
||||
if ! rpm-ostree --version | grep -q rust; then
|
||||
echo "ok yaml (SKIP)"
|
||||
else
|
||||
prepare_compose_test "from-yaml"
|
||||
python <<EOF
|
||||
prepare_compose_test "from-yaml"
|
||||
python <<EOF
|
||||
import json, yaml
|
||||
jd=json.load(open("$treefile"))
|
||||
with open("$treefile.yaml", "w") as f:
|
||||
f.write(yaml.dump(jd))
|
||||
EOF
|
||||
export treefile=$treefile.yaml
|
||||
runcompose
|
||||
echo "ok yaml"
|
||||
fi
|
||||
export treefile=$treefile.yaml
|
||||
runcompose
|
||||
echo "ok yaml"
|
||||
|
@ -8,18 +8,14 @@ dn=$(cd $(dirname $0) && pwd)
|
||||
. ${dn}/../common/libtest.sh
|
||||
|
||||
prepare_compose_test "compose2jigdo"
|
||||
if rpm-ostree --version | grep -q rust; then
|
||||
pysetjsonmember "rojig" '{ "name": "fedora-atomic-host", "license": "MIT", "summary": "Fedora Atomic Host"}'
|
||||
python <<EOF
|
||||
pysetjsonmember "rojig" '{ "name": "fedora-atomic-host", "license": "MIT", "summary": "Fedora Atomic Host"}'
|
||||
python <<EOF
|
||||
import json, yaml
|
||||
jd=json.load(open("$treefile"))
|
||||
with open("$treefile.yaml", "w") as f:
|
||||
f.write(yaml.dump(jd))
|
||||
EOF
|
||||
export treefile=$treefile.yaml
|
||||
else
|
||||
pysetjsonmember "ex-rojig-spec" '"fedora-atomic-host-oirpm.spec"'
|
||||
fi
|
||||
export treefile=$treefile.yaml
|
||||
|
||||
mkdir cache
|
||||
mkdir jigdo-output
|
||||
|
Loading…
Reference in New Issue
Block a user