Re-enable policy test

Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
This commit is contained in:
Patrick Uiterwijk 2021-12-08 15:24:45 +01:00
parent 961b988627
commit cf65a6e208
No known key found for this signature in database
GPG key ID: A0A847B80FBBFF4A
2 changed files with 3 additions and 9 deletions

View file

@ -57,6 +57,6 @@ jobs:
TCTI=swtpm: SKIP_CLEVIS=true cargo test -- --nocapture TCTI=swtpm: SKIP_CLEVIS=true cargo test -- --nocapture
- name: Run policy tests - name: Run policy tests
run: | run: |
# TCTI=swtpm: ./tests/test_policy TCTI=swtpm: ./tests/test_policy
- name: Run clippy - name: Run clippy
run: cargo clippy -- -D warnings run: cargo clippy -- -D warnings

View file

@ -125,14 +125,8 @@ const SKIP_CLEVIS: Option<&'static str> = option_env!("SKIP_CLEVIS");
// Testing against clevis requires https://github.com/latchset/clevis/commit/c6fc63fc055c18927decc7bcaa07821d5ae37614 // Testing against clevis requires https://github.com/latchset/clevis/commit/c6fc63fc055c18927decc7bcaa07821d5ae37614
#[test] #[test]
fn pcr_tests() { fn pcr_tests() {
let mut encrypters = vec![ let mut encrypters = vec![generate_encrypt_us(false), generate_encrypt_us(true)];
generate_encrypt_us(false), let mut decrypters = vec![generate_decrypt_us(false), generate_decrypt_us(true)];
generate_encrypt_us(true),
];
let mut decrypters = vec![
generate_decrypt_us(false),
generate_decrypt_us(true),
];
if SKIP_CLEVIS.is_none() { if SKIP_CLEVIS.is_none() {
encrypters.push(generate_encrypt_clevis()); encrypters.push(generate_encrypt_clevis());
decrypters.push(generate_decrypt_clevis()); decrypters.push(generate_decrypt_clevis());