From Fedora Project Wiki
Line 27: Line 27:
 
'''More git reference'''
 
'''More git reference'''
 
#[http://www.kernel.org/pub/software/scm/git/docs/v1.2.6/tutorial.html git tutorial introduction]
 
#[http://www.kernel.org/pub/software/scm/git/docs/v1.2.6/tutorial.html git tutorial introduction]
 
+
==Create patch==
 +
#[https://fedoraproject.org/wiki/AutoQA_PatchProcess process to create patch]
 
==Apply patch==
 
==Apply patch==
 
#Install the package
 
#Install the package

Revision as of 08:26, 12 August 2010

Update Auto Install

Upload the authentication key

  1. $ pwd
    /home/username
  2. $ ssh-keygen -t rsa
  3. Get an account and upload the /home/username/.ssh/id_rsa.pub to https://admin.fedoraproject.org/accounts/login

Clone the source code

  1. git clone ssh://git.fedorahosted.org/git/autoqa.git

Configure name and email

  1. $ git config -f $HOME/.gitconfig user.name "username"
  2. $ git config -f $HOME/.gitconfig user.email "username@youremail.com"

Add files

  1. $ pwd
    /home/username/autoqa
  2. $ git add tests/anaconda/*
  3. $ git commit -a
  4. $ git pull
  5. $ git push origin username
  6. $ git push ssh://git.fedorahosted.org/git/autoqa.git master
    Enter passphrase for key '/home/username/.ssh/id_rsa':

Create named branch

  1. Create named branch

More git reference

  1. git tutorial introduction

Create patch

  1. process to create patch

Apply patch

  1. Install the package
    yum install patch.x86_64
  2. Save the patch to some_directory
  3. $ pwd
    /home/username/autoqa
  4. Apply patch
    $ patch -p1 < some_direcotory/patch_name.patch or patch --dry-run --verbose -p1 < some_direcotory/patch_name.patch

Run auto install tests

install the libs of auto install

  1. # pwd
    /home/username/autoqa
  2. # make install

run the tests

  1. DVD install example:
    DVD install example
  2. CD install example:
    CD install example

Known issues

  1. The XVfb display does not work,because we got some conflicts
  2. If the host is F13, need to log in as root and Enable "assistive technologies",System->Preferences->Assistive Technologies, check "Enable assistive technologies", then run the test as root
  3. The dvd_install.py and cd_install.py do not support downloading first if the given media is remote http address.mediakit_sanity.py supports this
  4. If the testing can not get logs, you may have to modify the autoqa/lib/python/anaconda.py line:"wget -O /bin/minimon http://10.66.65.170/minimon" to where guest can access minimon file
  5. If have too many windows open,the dogtail may can not focus on virt - viewer to pass args