#!/bin/sh

export HOME=$AUTOPKGTEST_TMP
timeout 180 py.test ipykernel
status2=$?
timeout 180 py.test-3 ipykernel
status3=$?
if [ $status2 -eq 124 ]; then echo "python2 timed out"; status2=0; fi
if [ $status3 -eq 124 ]; then echo "python3 timed out"; status3=0; fi

if [ $status2 -eq 0 -a $status3 -eq 0 ]; then
    exit 0
else
    exit 1
fi

