<commit_before>#!/bin/bash
set -x

/root/staging.sh

virsh destroy staging
virsh undefine staging
rm /var/lib/libvirt/images/staging.img
dd if=/dev/zero of=/var/lib/libvirt/images/staging.img bs=1G count=16
virsh create ~/staging.xml

until [ $(curl -s http://192.168.241.240/ubuntu/finished | grep up) ]; do echo 'waiting...'>>/tmp/test.log ; sleep 5 ; done

virsh destroy pxe
virsh undefine pxe
rm /var/lib/libvirt/images/pxe.img
dd if=/dev/zero of=/var/lib/libvirt/images/pxe.img bs=1G count=16
virsh create ~/pxe.xml<commit_msg>Update test script to provide better feedback<commit_after>#!/bin/bash

/root/staging.sh
ssh-keygen -R 192.168.241.240
ssh-keygen -R 192.168.241.230

virsh destroy staging
rm /var/lib/libvirt/images/staging.img
dd if=/dev/zero of=/var/lib/libvirt/images/staging.img bs=1G count=16
virsh create ~/staging.xml
count=0
until [ $(curl -s http://1172.16.17.3240/ubuntu/finished | grep up) ]; do echo "waiting... try ${count}" |& tee /tmp/test.log ; ((count++)); sleep 15 ; done

virsh destroy pxe
rm /var/lib/libvirt/images/pxe.img
dd if=/dev/zero of=/var/lib/libvirt/images/pxe.img bs=1G count=16
virsh create ~/pxe.xml
{'fraction_non_alphanumeric': 0.15867480383609417, 'fraction_numerical': 0.05579773321708806, 'mean_word_length': 3.864406779661017, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 4, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7608659', 'n_tokens_mistral': 516, 'n_tokens_neox': 444, 'n_words': 105}