~lutostag/ubuntu/trusty/maas/1.5.4+keystone

« back to all changes in this revision

Viewing changes to src/provisioningserver/tests/test_kernel_opts.py

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez
  • Date: 2013-03-04 11:49:44 UTC
  • mto: This revision was merged to the branch mainline in revision 25.
  • Revision ID: package-import@ubuntu.com-20130304114944-azcvu9anlf8mizpa
Tags: upstream-1.3+bzr1452+dfsg
ImportĀ upstreamĀ versionĀ 1.3+bzr1452+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
133
133
                "overlayroot=tmpfs",
134
134
                "ip=::::%s:BOOTIF" % params.hostname]))
135
135
 
 
136
    def test_commissioning_compose_kernel_command_line_inc_extra_opts(self):
 
137
        extra_opts = "special console=ABCD -- options to pass"
 
138
        params = make_kernel_parameters(extra_opts=extra_opts)
 
139
        cmdline = compose_kernel_command_line(params)
 
140
        # There should be a blank space before the options, but otherwise added
 
141
        # verbatim.
 
142
        self.assertThat(cmdline, Contains(' ' + extra_opts))
 
143
 
 
144
    def test_commissioning_compose_kernel_handles_extra_opts_None(self):
 
145
        params = make_kernel_parameters(extra_opts=None)
 
146
        cmdline = compose_kernel_command_line(params)
 
147
        self.assertNotIn(cmdline, "None")
 
148
 
136
149
    def test_compose_kernel_command_line_inc_common_opts(self):
137
150
        # Test that some kernel arguments appear on both commissioning
138
151
        # and install command lines.