Logo Search packages:      
Sourcecode: jockey version File versions  Download package

def sandbox::TestOSLib::_make_xorg_conf (   self  )  [private]

Create a dummy xorg.conf and set self.xorg_conf_path appropriately.

Definition at line 382 of file sandbox.py.

00382                              :
        '''Create a dummy xorg.conf and set self.xorg_conf_path appropriately.'''

        self.xorg_conf_path = os.path.join(self.workdir, 'xorg.conf')
        f = open(self.xorg_conf_path, 'w')
        f.write('''# xorg.conf (xorg X Window System server configuration file)

Section "InputDevice"
      Identifier  "Generic Keyboard"
      Driver            "kbd"
      Option            "CoreKeyboard"
      Option            "XkbRules"  "xorg"
      Option            "XkbModel"  "pc105"
      Option            "XkbLayout" "us"
EndSection

Section "Device"
      Identifier  "Standard ice cream graphics"
      Driver            "vanilla"
EndSection

Section "Monitor"
      Identifier  "My Monitor"
      Option            "DPMS"
      HorizSync   30-70
      VertRefresh 50-160
EndSection

Section "Screen"
      Identifier  "Default Screen"
      Device            "Standard ice cream graphics"
      Monitor           "My Monitor"
      DefaultDepth      24
EndSection

Section "ServerLayout"
      Identifier  "Default Layout"
      Screen            "Default Screen"
      InputDevice "Generic Keyboard"
EndSection
''')
        f.close()

    def _get_os_version(self):


Generated by  Doxygen 1.6.0   Back to index