Skip to content

Instantly share code, notes, and snippets.

@rlobillo
Created January 28, 2021 12:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rlobillo/83cb86abaa2ea78135d8618b3836d883 to your computer and use it in GitHub Desktop.
Save rlobillo/83cb86abaa2ea78135d8618b3836d883 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -x
export KUBECONFIG=~/ostest/auth/kubeconfig
cd ~
IFS=$'\n'
declare -a TESTS=(`grep -A10000 'Failing tests:' conformance_results/conformance_ocp-tests.log | grep '^\['`)
mkdir /home/stack/conformance_results_retest
for TEST in ${TESTS[@]}; do
./openshift-tests run kubernetes/conformance --dry-run | grep -F $TEST >> /home/stack/conformance_results_retest/tests.txt
done
./openshift-tests run -f /home/stack/conformance_results_retest/tests.txt --output-file /home/stack/conformance_results_retest/conformance_ocp-tests.log
#END
#!/bin/bash
cd ~/kubernetes
# Set desired list of tests:
TESTS=(NetworkPolicy-15 NetworkPolicy-08 NetworkPolicy-11)
for TEST in ${TESTS[@]}; do
echo "Running $TEST..."
mkdir ~/np_results_$TEST
kubetest --provider=local --check-version-skew=false --test --ginkgo-parallel=1 \
--test_args="--ginkgo.focus=\[Feature:$TEST --host=https://api.ostest.shiftstack.com:6443" \
--dump=/home/stack/np_results_$TEST > ~/np_results_$TEST/np_kubetest.log
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment