diff options
Diffstat (limited to 'src/credential/test_credential_bi_bw.sh')
-rwxr-xr-x | src/credential/test_credential_bi_bw.sh | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/credential/test_credential_bi_bw.sh b/src/credential/test_credential_bi_bw.sh index ae5549a1d..eedcea7eb 100755 --- a/src/credential/test_credential_bi_bw.sh +++ b/src/credential/test_credential_bi_bw.sh | |||
@@ -64,7 +64,9 @@ echo "+++ Starting to Resolve +++" | |||
64 | DELS=`$DO_TIMEOUT gnunet-credential --collect --issuer=$AKEY --attribute="a" --ego=f --forward --backward -c test_credential_lookup.conf | paste -d, -s - -` | 64 | DELS=`$DO_TIMEOUT gnunet-credential --collect --issuer=$AKEY --attribute="a" --ego=f --forward --backward -c test_credential_lookup.conf | paste -d, -s - -` |
65 | echo $DELS | 65 | echo $DELS |
66 | echo gnunet-credential --verify --issuer=$AKEY --attribute="a" --subject=$FKEY --delegate=\'$DELS\' --forward --backward -c test_credential_lookup.conf | 66 | echo gnunet-credential --verify --issuer=$AKEY --attribute="a" --subject=$FKEY --delegate=\'$DELS\' --forward --backward -c test_credential_lookup.conf |
67 | RES_DELS=`gnunet-credential --verify --issuer=$AKEY --attribute="a" --subject=$FKEY --delegate="$DELS" --forward --backward -c test_credential_lookup.conf` | 67 | gnunet-credential --verify --issuer=$AKEY --attribute="a" --subject=$FKEY --delegate="$DELS" --forward --backward -c test_credential_lookup.conf |
68 | |||
69 | RES = $? | ||
68 | 70 | ||
69 | # Cleanup properly | 71 | # Cleanup properly |
70 | gnunet-namestore -z a -d -n "a" -t ATTR -c test_credential_lookup.conf | 72 | gnunet-namestore -z a -d -n "a" -t ATTR -c test_credential_lookup.conf |
@@ -75,13 +77,10 @@ gnunet-namestore -z f -d -n "@" -t DEL -c test_credential_lookup.conf | |||
75 | 77 | ||
76 | gnunet-arm -e -c test_credential_lookup.conf | 78 | gnunet-arm -e -c test_credential_lookup.conf |
77 | 79 | ||
78 | if [ "$RES_DELS" != "Failed." ] | 80 | if [ $RES == 0 ] |
79 | then | 81 | then |
80 | # TODO: replace echo -e bashism | ||
81 | echo -e "${RES_DELS}" | ||
82 | exit 0 | 82 | exit 0 |
83 | else | 83 | else |
84 | echo "FAIL: Failed to verify credential $RES_DELS." | 84 | echo "FAIL: Failed to verify credential." |
85 | exit 1 | 85 | exit 1 |
86 | fi | 86 | fi |
87 | |||