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