1. 13 4月, 2021 6 次提交
  2. 10 4月, 2021 1 次提交
  3. 08 4月, 2021 1 次提交
  4. 07 4月, 2021 1 次提交
    • T
      pytest: Lower pygit2 requirement · 978a4dab
      Tom Rini 提交于
      The latest versions of pygit2 are not available in practically any
      distribution at this time.  Furthermore, we don't need the latest in
      order to run all of our testsuites.  Reduce this version requirement to
      something older that meets our needs while still supporting running our
      tests on older hosts (and so, test labs).
      Reported-by: NTom Warren <twarren@nvidia.com>
      Signed-off-by: NTom Rini <trini@konsulko.com>
      978a4dab
  5. 06 4月, 2021 1 次提交
  6. 31 3月, 2021 1 次提交
    • A
      test: Don't unmount not (yet) mounted system · 1ba21bb0
      Andy Shevchenko 提交于
      When test suite tries to create a file for a new filesystem test case and fails,
      the clean up of the exception tries to unmount the image, that has not yet been
      mounted. When it happens, the fuse_mounted global variable is set to False and
      inconveniently the test case tries to use sudo, so without this change the
      admin of the machine gets an (annoying) email:
      
        Subject: *** SECURITY information for example.com ***
      
        example.com : Feb  5 19:43:47 : ... COMMAND=/bin/umount .../build-sandbox/persistent-data/mnt
      
      and second run of the test cases on uncleaned build folder will ask for sudo
      which is not what expected.
      
      Besides that there is a double unmount calls during successfully run test case.
      
      All of these due to over engineered Python try-except clause and people didn't
      get it properly at all. The rule of thumb is that don't use more keywords than
      try-except in the exception handling code. Nevertheless, here we adjust code
      to be less intrusive to the initial logic behind that complex and unclear
      constructions in the test case, although it adds a lot of lines of the code,
      i.e. splits one exception handler to three, so on each step we know what
      cleanup shall perform.
      Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      1ba21bb0
  7. 29 3月, 2021 1 次提交
  8. 27 3月, 2021 2 次提交
    • S
      sf: Support querying write-protect · b3b60f59
      Simon Glass 提交于
      This feature was dropped from U-Boot some time ago:
      
         f12f96cf (sf: Drop spl_flash_get_sw_write_prot")
      
      However, we do need a way to see if a flash device is write-protected,
      since if it is, it may not be possible to write to do (i.e. failing to
      write is expected).
      
      I am not sure of the correct layer to implement this, so this patch is a
      stab at it. If spi-flash makes sense then I will add to the 'sf' also.
      
      Re the points mentioned in the removal commit:
      
          1) This kind of requirement can be achieved using existing
             flash operations and flash locking API calls instead of
             making a separate flash API.
      
      Which uclass is this?
      
          2) Technically there is no real hardware user for this API to
             use in the source tree.
      
      I do want coral (at least) to support this.
      
          3) Having a flash operations API for simple register read bits
             also make difficult to extend the flash operations.
      
      This new patch only mentions write-protect being on or off, rather than
      the actual mechanism.
      
          4) Instead of touching generic code, it is possible to have
             this functionality inside spinor operations in the form of
             flash hooks or fixups for associated flash chips.
      
      That sounds to me like what drivers are for. But we still need some sort
      of API for it to be accessible.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      b3b60f59
    • S
      test: Silenece the echo and print tests · b6da5597
      Simon Glass 提交于
      These tests current produce unwanted output on sandbox. Use the correct
      functions to controller console output, to avoid this.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      b6da5597
  9. 26 3月, 2021 10 次提交
  10. 22 3月, 2021 3 次提交
  11. 18 3月, 2021 1 次提交
  12. 14 3月, 2021 2 次提交
  13. 13 3月, 2021 1 次提交
    • S
      log: Handle line continuation · 9ad7a6c2
      Simon Glass 提交于
      When multiple log() calls are used which don't end in newline, the
      log prefix is prepended multiple times in the same line. This makes the
      output look strange.
      
      Fix this by detecting when the previous log record did not end in newline.
      In that case, setting a flag.
      
      Drop the unused BUFFSIZE in the test while we are here.
      
      As an example implementation, update log_console to check the flag and
      produce the expected output.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      9ad7a6c2
  14. 12 3月, 2021 9 次提交