Skip to content
This repository has been archived by the owner on Feb 24, 2020. It is now read-only.

stage0: added exec flag to prepare statement #1410

Merged
merged 3 commits into from Sep 17, 2015
Merged

Conversation

cgonyeo
Copy link
Member

@cgonyeo cgonyeo commented Sep 15, 2015

When preparing a container, the exec flag can be used to override the
default binary run inside the container. Behaves the same way as on the
run command.

When preparing a container, the exec flag can be used to override the
default binary run inside the container. Behaves the same way as on the
run command.
@cgonyeo
Copy link
Member Author

cgonyeo commented Sep 15, 2015

This should solve #1395

@jonboulle
Copy link
Contributor

@dgonyeo Could you add a functional test for this to tests/rkt_exec_test.go please?

@iaguis
Copy link
Member

iaguis commented Sep 17, 2015

LGTM

@jonboulle jonboulle added this to the v0.9.0 milestone Sep 17, 2015
}
}

func runRktAndGetUUID(t *testing.T, rktCmd string) string {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would you mind splitting this into a shared file (rkt_tests.go perhaps) and using it in the pod manifest test too, now? Can do that in a follow up if you like

@jonboulle
Copy link
Contributor

A couple of nits but LGTM after that, thanks!

Derek Gonyeo added 2 commits September 17, 2015 12:25
Added a new test to make sure that the --exec flag on the prepare
command works as intended.
Moved runRktAndGetUUID to tests/rkt_tests.go, and modified
TestPodManifest to use it. Reduces code duplication.
@cgonyeo
Copy link
Member Author

cgonyeo commented Sep 17, 2015

nits resolved

@jonboulle
Copy link
Contributor

👍 , merge on green

cgonyeo pushed a commit that referenced this pull request Sep 17, 2015
stage0: added exec flag to prepare statement
@cgonyeo cgonyeo merged commit 4995a5f into rkt:master Sep 17, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants