tests: use the real model assertion when creating the core test image #1845

Merged
merged 1 commit into from Sep 5, 2016

Conversation

Projects
None yet
3 participants
Collaborator

mvo5 commented Sep 4, 2016

No description provided.

Contributor

zyga commented Sep 4, 2016

\o/

Looks good to me

- cp $TESTSLIB/assertions/developer1.account $STORE_DIR/asserts
- cp $TESTSLIB/assertions/developer1.account-key $STORE_DIR/asserts
+ # FIXME: fetch directly once its in the assertion service
+ cat > $IMAGE_HOME/pc.model <<EOF
@niemeyer

niemeyer Sep 5, 2016

Contributor

The file should probably go into $TESTS/lib/pc-amd64.model and be copied. Okay to do that later, though.

-
- # teardown store
- teardown_store fake $STORE_DIR
+ /tmp/go/bin/ubuntu-device-flash core 16 $IMAGE_HOME/pc.model --channel edge --install snapweb --install $IMAGE_HOME/ubuntu-core_*.snap --output $IMAGE_HOME/$IMAGE
@niemeyer

niemeyer Sep 5, 2016

Contributor

Or maybe not even copied, if it can be referred to.

@niemeyer niemeyer merged commit be531e3 into snapcore:master Sep 5, 2016

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment