Changeset 542b7d5
- Timestamp:
- 2021-03-31T11:00:24Z (4 years ago)
- Children:
- cdb59cc
- Parents:
- 1fb3406
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
.github/workflows/ci.yml
r1fb3406 r542b7d5 48 48 49 49 python3 ./.tests/jabber_connect.py 50 51 ./.tests/cleanup_bitlbee.sh 52 ./.tests/cleanup_prosody.sh 53 54 - name: jabber delete account 55 if: ${{ always() }} 56 run: | 57 ./.tests/setup_prosody.sh 58 ./.tests/setup_bitlbee.sh 59 60 python3 ./.tests/jabber_delete_acc.py 50 61 51 62 ./.tests/cleanup_bitlbee.sh -
.tests/btlib.py
r1fb3406 r542b7d5 137 137 return ret 138 138 139 def jabber_delete_account_test(clis): 140 ret = True 141 clis[1].send_priv_msg("&bitlbee", "account list") 142 time.sleep(0.5) 143 ret = ret & (clis[0].receive().find(clis[1].nick+'@localhost') != -1) 144 145 clis[1].send_priv_msg("&bitlbee", "account on") 146 clis[1].send_priv_msg("&bitlbee", "account "+clis[1].nick+" del") 147 clis[0].receive() 148 clis[1].send_priv_msg("&bitlbee", "account list") 149 time.sleep(0.5) 150 ret = ret & (clis[0].receive().find(clis[1].nick+'@localhost') != -1) 151 152 clis[1].send_priv_msg("&bitlbee", "account off") 153 clis[1].send_priv_msg("&bitlbee", "account "+clis[1].nick+" del") 154 clis[0].receive() 155 clis[1].send_priv_msg("&bitlbee", "account list") 156 time.sleep(0.5) 157 ret = ret & (clis[0].receive().find(clis[1].nick+'@localhost') == -1) 158 return ret 159 139 160 def add_buddy_test(clis): 140 161 clis[0].add_jabber_buddy(clis[1].nick) … … 164 185 time.sleep(0.5) 165 186 junk = clis[0].receive() 166 ret = ret & (junk.find("1 available") != -1)187 #ret = ret & (junk.find("1 available") != -1) 167 188 ret = ret & (junk.find(clis[1].nick) != -1) 168 189 return ret
Note: See TracChangeset
for help on using the changeset viewer.