@@ -85,35 +85,29 @@ jobs:
8585 run : |
8686 # Generate key with default password
8787 cd wolftpm
88- echo "Generating key..."
89- ./examples/keygen/keygen keyblob.bin -rsa -t -pem -eh || { echo "Keygen failed"; exit 1; }
88+ ./examples/keygen/keygen keyblob.bin -rsa -t -pem -eh
9089
9190 # Convert key to SSH format
92- echo "Converting to SSH key format..."
93- ssh-keygen -f key.pem -i -m PKCS8 > ../wolfssh/key.ssh || { echo "SSH keygen failed"; exit 1; }
91+ ssh-keygen -f key.pem -i -m PKCS8 > ../wolfssh/key.ssh
9492 cd ..
9593
9694 # Start echoserver and wait for it to be ready
97- echo "Starting echoserver..."
9895 cd wolfssh
99- ./examples/echoserver/echoserver -1 -s key.ssh & || { echo "Echoserver failed to start"; exit 1; }
96+ ./examples/echoserver/echoserver -1 -s key.ssh &
10097 echo "Echoserver started with PID: $!"
10198 sleep 2
10299 cd ..
103100
104101 # Test client connection with default password
105- echo "Testing client connection..."
106102 cd wolfssh
107- ./examples/client/client -i ../wolftpm/keyblob.bin -u hansel -K ThisIsMyKeyAuth || { echo "Client connection failed"; exit 1; }
103+ ./examples/client/client -i ../wolftpm/keyblob.bin -u hansel -K ThisIsMyKeyAuth
108104 cd ..
109105
110106 # Kill the server and simulator and restart them
111107 - name : Kill server and simulator and restart
112108 run : |
113- echo "Killing server and simulator..."
114109 pkill -f tpm_server
115110 sleep 2 # Wait for the server to be killed
116- echo "Restarting server and simulator..."
117111 cd ibmswtpm2/src
118112 ./tpm_server &
119113 sleep 2 # Wait for the server to be restarted
@@ -124,30 +118,25 @@ jobs:
124118 run : |
125119 # Test with custom password
126120 cd wolftpm
127- echo "Generating key with custom password..."
128- ./examples/keygen/keygen keyblob2.bin -rsa -t -pem -eh -auth=custompassword || { echo "Keygen failed"; exit 1; }
121+ ./examples/keygen/keygen keyblob2.bin -rsa -t -pem -eh -auth=custompassword
129122
130123 # Convert key to SSH format
131- echo "Converting to SSH key format..."
132- ssh-keygen -f key.pem -i -m PKCS8 > ../wolfssh/key.ssh || { echo "SSH keygen failed"; exit 1; }
124+ ssh-keygen -f key.pem -i -m PKCS8 > ../wolfssh/key.ssh
133125 cd ..
134126
135127 # Start echoserver and wait for it to be ready
136- echo "Starting echoserver..."
137128 cd wolfssh
138- ./examples/echoserver/echoserver -1 -s key.ssh & || { echo "Echoserver failed to start"; exit 1; }
129+ ./examples/echoserver/echoserver -1 -s key.ssh &
139130 echo "Echoserver started with PID: $!"
140131 sleep 2
141132 cd ..
142133
143134 # Test with custom password
144- echo "Testing client connection with custom password..."
145135 cd wolfssh
146- ./examples/client/client -i ../wolftpm/keyblob2.bin -u hansel -K custompassword || { echo "Client connection failed"; exit 1; }
136+ ./examples/client/client -i ../wolftpm/keyblob2.bin -u hansel -K custompassword
147137 cd ..
148138
149139 # Cleanup
150- echo "Cleaning up..."
151140 pkill -f tpm_server
152141 sleep 2
153142
0 commit comments