#!/bin/sh -eu mask=$(list2mask --cpus 2-3,5,7-8) if [ $? -ne 0 ]; then echo "FAIL: list2mask failed to execute" exit fi if [ "$mask" != "1ac" ]; then echo "FAIL: list2mask returns mask '$mask', expected '1ac'" exit fi echo "PASS: list2mask"