selftests/pstore: add pstore test script for pre-reboot