mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 20:59:41 +02:00
lxc: adjust the lxc-test-unpriv running order
Some of lxc test cases can not full clean the system environment, that cause lxc-test-unpriv cannot execute successfully. Since those code in lxc are using for tests, so just adjust the cases order. Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
parent
e4e2072188
commit
664e3573d4
|
@ -16,6 +16,10 @@ blacklist="$blacklist lxc-test-get_item"
|
|||
blacklist="$blacklist lxc-test-shutdowntest"
|
||||
blacklist="$blacklist lxc-test-state-server"
|
||||
|
||||
# Tests in firstrunlist will be run first
|
||||
firstrunlist=""
|
||||
firstrunlist="$firstrunlist lxc-test-unpriv"
|
||||
|
||||
passed=0
|
||||
failed=0
|
||||
skipped=0
|
||||
|
@ -26,11 +30,29 @@ rm -f logs/*
|
|||
|
||||
echo "### Starting LXC ptest ###"
|
||||
|
||||
for test in $firstrunlist
|
||||
do
|
||||
./tests/$test >logs/$(basename $test).log 2>&1
|
||||
if [ $? -eq 0 ]
|
||||
then
|
||||
echo "PASS: $(basename $test)"
|
||||
passed=$((passed+1))
|
||||
else
|
||||
echo "FAIL: $(basename $test)"
|
||||
failed=$((failed+1))
|
||||
fi
|
||||
done
|
||||
|
||||
for test in ./tests/*
|
||||
do
|
||||
if [[ ! $blacklist = *$(basename $test)* ]]
|
||||
then
|
||||
$test >logs/$(basename $test).log 2>&1
|
||||
if [[ ! $firstrunlist = *$(basename $test)* ]]
|
||||
then
|
||||
$test >logs/$(basename $test).log 2>&1
|
||||
else
|
||||
continue;
|
||||
fi
|
||||
else
|
||||
echo "SKIPPED: $(basename $test)"
|
||||
skipped=$((skipped+1))
|
||||
|
@ -47,6 +69,7 @@ do
|
|||
fi
|
||||
done
|
||||
|
||||
|
||||
echo ""
|
||||
echo "Results:"
|
||||
echo " PASSED = $passed"
|
||||
|
|
Loading…
Reference in New Issue
Block a user