~kalikiana/+junk/ciathome

« back to all changes in this revision

Viewing changes to run_tests_with_debs.py

  • Committer: Florian Boucault
  • Date: 2014-02-14 21:08:04 UTC
  • Revision ID: florian.boucault@canonical.com-20140214210804-z8euk40x33c5v1er
Disable reinstalling pristine packages. Too flaky

Show diffs side-by-side

added added

removed removed

Lines of Context:
120
120
    packages_string = ' '.join(packages)
121
121
    redirects = "0>&1 2>/dev/null >/dev/null"
122
122
    grep = "grep \"not-installed\""
123
 
    execute("adb shell dpkg --remove --force-all --status-fd=0 %s %s | %s" % (packages_string, redirects, grep))
124
 
    print("Reinstalling %s from the Ubuntu archive..." % packages_string)
125
 
    execute("adb shell apt-get install --reinstall %s >/dev/null" % packages_string)
 
123
    # FIXME: temporary disabled as it bricks the device if there is no network available
 
124
#    execute("adb shell dpkg --remove --force-all --status-fd=0 %s %s | %s" % (packages_string, redirects, grep))
 
125
#    print("Reinstalling %s from the Ubuntu archive..." % packages_string)
 
126
#    execute("adb shell apt-get install --reinstall %s >/dev/null" % packages_string)
126
127
 
127
128
 
128
129