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