build: fix rpm build error with test_infra