From 6a43f7bfdfdb693e877943490abd5839a630ad9d Mon Sep 17 00:00:00 2001 From: gramanas Date: Tue, 13 Nov 2018 13:22:53 +0200 Subject: Fixed homedir with restore and updated delete --- test/01_add | 4 ++-- test/03_delete | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/01_add b/test/01_add index 1de64bf..5f156da 100644 --- a/test/01_add +++ b/test/01_add @@ -20,8 +20,8 @@ function run_add { if [ "$(sqlite3 $BIN/ckdb "select name from program where name = '$1'")" != "$1" ]; then err "$1 is not in the db." fi - - if [ "$(sqlite3 $BIN/ckdb "select path from config where path = '$BIN/$2'")" != "$BIN/$2" ]; then + + if [ "$($BIN/ck -c $BIN ls -p $1)" != "$BIN/$2" ]; then err "$2 is not in the db." fi diff --git a/test/03_delete b/test/03_delete index 1668576..e4663bd 100644 --- a/test/03_delete +++ b/test/03_delete @@ -15,7 +15,7 @@ add_config prog2 $path3 add_config prog2 $path4 # delete path1 -exec $BIN/ck -c $BIN del -c $path1 > /dev/null & +exec $BIN/ck -c $BIN del prog1 `basename $path1` > /dev/null & wait $! for i in $($BIN/ck -c $BIN list paths); do @@ -26,7 +26,7 @@ for i in $($BIN/ck -c $BIN list paths); do done # delete path2 (also prog1) -exec $BIN/ck -c $BIN del -c $path2 > /dev/null & +exec $BIN/ck -c $BIN del prog1 `basename $path2` > /dev/null & wait $! for i in $($BIN/ck -c $BIN list programs); do -- cgit v1.2.3