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