Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

fix ut failure due to incorrect cleanup and make it runnable with non-root #1526

Merged
merged 2 commits into from
Apr 12, 2019

Commits on Apr 12, 2019

  1. ut: fix UT failure due to non-root

    We should allow UT to run without root.
    
    Signed-off-by: Peng Tao <bergwolf@hyper.sh>
    bergwolf committed Apr 12, 2019
    Configuration menu
    Copy the full SHA
    a0f49a9 View commit details
    Browse the repository at this point in the history
  2. ut: fix UT failure due to incorrect cleanup

    cleanup() actually removes all things under testdir and
    causes UT failures.
    
    === RUN   TestCreateMockSandbox
    ERRO[0000] Create new sandbox failed                     error="QEMU path (/tmp/vc-tmp-007004370/hypervisor) does not exist" sandbox=7f49d00d-1995-4156-8c79-5f5ab24ce138 sandboxid=7f49d00d-1995-4156-8c79-5f5ab24ce138 source=virtcontainers subsystem=sandbox
    exit status 1
    
    Fixes: kata-containers#1525
    
    Signed-off-by: Peng Tao <bergwolf@hyper.sh>
    bergwolf committed Apr 12, 2019
    Configuration menu
    Copy the full SHA
    9040f6a View commit details
    Browse the repository at this point in the history