diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2018-11-13 13:22:53 +0200 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2018-11-13 13:22:53 +0200 |
commit | 6a43f7bfdfdb693e877943490abd5839a630ad9d (patch) | |
tree | 35c48a0acf80e6288aef952f93caac3195ba55ec /test | |
parent | d015a5e66ac9b92bba4eb5020e7bf2384f65ed25 (diff) | |
download | ck-6a43f7bfdfdb693e877943490abd5839a630ad9d.tar.gz ck-6a43f7bfdfdb693e877943490abd5839a630ad9d.tar.bz2 ck-6a43f7bfdfdb693e877943490abd5839a630ad9d.zip |
Fixed homedir with restore and updated delete
Diffstat (limited to 'test')
-rw-r--r-- | test/01_add | 4 | ||||
-rw-r--r-- | test/03_delete | 4 |
2 files changed, 4 insertions, 4 deletions
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 |