1. 24 7月, 2018 8 次提交
  2. 21 7月, 2018 4 次提交
  3. 20 7月, 2018 2 次提交
  4. 19 7月, 2018 6 次提交
  5. 18 7月, 2018 5 次提交
  6. 17 7月, 2018 13 次提交
  7. 16 7月, 2018 2 次提交
    • L
      Merging pull request 2710 · 9d2ead14
      Lukáš Doktor 提交于
      Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
      
      * https://github.com/avocado-framework/avocado:
        Asset Fetcher: avoid clashes by using namespace dirs
        Asset Fetcher: add a fetch/build example test
        avocado/utils/build.py: add a configure utility function
        Asset Fetcher: remove hashfile attribute
        Asset Fetcher: remove attribute asset_file
        Asset fetcher: remove public attributes nameobj and basename
      9d2ead14
    • C
      Asset Fetcher: avoid clashes by using namespace dirs · 111c2a80
      Cleber Rosa 提交于
      The current implementation fails to cache multiple files if their
      name is the same.  The filename *only* will be considered when
      looking at the cached directories, and if hashes are not given,
      users will end up with the wrong files, even when they give
      unique URLs to different files.
      
      To give a real example, suppose we have one test that needs a specific
      asset file (such as an specific kernel version):
      
         def test_x86_64(self):
            self.fetch_asset('https://avocado-project.org/data/linux/x86_64/vmlinuz',
                             asset_hash='0123456789abcdef...')
      
      While a second test wants the daily version of a given asset:
      
        def test_aarch64(self):
            self.fetch_asset('https://avocado-project.org/data/linux/aarch64/vmlinuz',
                             expire='1d')
      
      If test_x86_64() runs first, it will write to $CACHE_DIR/vmlinuz.  The
      second test, test_aarch64(), may end up having the completely wrong
      file.  Using `asset_cache` is not a possibility, given that it wants
      the daily kernel.
      
      These changes put asset files on a "cache relative directory".  If a
      hash is given, it's safe to put files in a directory indexed "by
      name".  If not, they're put in a directory named after the URL (minus
      the filename).
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      111c2a80