• Home
  • Raw
  • Download

Lines Matching +full:os +full:- +full:release

2 # -*- coding: utf-8 -*-
4 # Use of this source code is governed by a BSD-style license that can be
10 import os
45 @mock.patch.object(os, "makedirs")
46 @mock.patch.object(os.path, "exists")
51 test_build_id = "lumpy-release/R36-5814.0.0"
53 "gs://chromeos-image-archive/%s/chromiumos_test_image.tar.xz"
61 # Set os.path.exists to always return False and run downloader
72 # Verify os.path.exists was called thrice, with proper arguments.
76 "/usr/local/home/chromeos/.*tmp/lumpy-release/"
77 "R36-5814.0.0/chromiumos_test_image.bin"
82 "/usr/local/home/chromeos/.*tmp/lumpy-release/R36-5814.0.0"
87 # Verify we called os.mkdirs
91 "/usr/local/home/chromeos/.*tmp/lumpy-release/R36-5814.0.0"
99 "cp gs://chromeos-image-archive/lumpy-release/R36-5814.0.0/"
101 "/usr/local/home/chromeos/.*tmp/lumpy-release/R36-5814.0.0"
106 # Reset the velues in the mocks; set os.path.exists to always return
115 # Verify os.path.exists was called thrice, with proper arguments.
119 "/usr/local/home/chromeos/.*tmp/lumpy-release/"
120 "R36-5814.0.0/chromiumos_test_image.bin"
125 "/usr/local/home/chromeos/.*tmp/lumpy-release/R36-5814.0.0"
131 # os.path.exists returned True, there was no work do be done).
135 @mock.patch.object(os.path, "exists")
140 test_build_id = "lumpy-release/R36-5814.0.0"
146 # Set os.path.exists to always return False and run uncompress.
155 # Verify os.path.exists was called twice, with correct arguments.
159 "/usr/local/home/chromeos/.*tmp/lumpy-release/"
160 "R36-5814.0.0/chromiumos_test_image.bin"
172 "cd /usr/local/home/chromeos/.*tmp/lumpy-release/R36-5814.0.0 ; "
173 "tar -Jxf chromiumos_test_image.tar.xz "
189 "cd /usr/local/home/chromeos/.*tmp/lumpy-release/R36-5814.0.0 ; "
190 "rm -f chromiumos_test_image.bin "
199 # Set os.path.exists to always return True (except for "inside chroot"
206 # Verify os.path.exists was called once, with correct arguments.
210 "/usr/local/home/chromeos/.*tmp/lumpy-release/"
211 "R36-5814.0.0/chromiumos_test_image.bin"
222 test_build_id = "remote/lumpy/latest-dev"
239 return "lumpy-release/R36-5814.0.0"
302 # Call Run with a non-empty autotest and debug path