Skip to content

Commit

Permalink
programs/igt/pkg/PKGBUILD: fix build errors
Browse files Browse the repository at this point in the history
fix below issue:
cat: /lkp/lkp/src/pkg/igt/addon/tests/standalone: No such file or directory
cp: cannot stat '/lkp/lkp/src/pkg/igt/exclude': No such file or directory

Signed-off-by: Oliver Sang <oliver.sang@intel.com>
Signed-off-by: Philip Li <philip.li@intel.com>
  • Loading branch information
oliver-sang authored and rli9 committed Jan 10, 2024
1 parent 7f5dfe7 commit d25f58a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions programs/igt/pkg/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ split_tests()
{
cd $srcdir/igt-gpu-tools
# standalone test
for test in $(cat $LKP_SRC/pkg/${pkgname}/addon/tests/standalone | grep -v '^#')
for test in $(cat $LKP_SRC/programs/${pkgname}/pkg/addon/tests/standalone | grep -v '^#')
do
echo $test > ./$test
done

standalone_tests=`paste -sd '|' <(cat $LKP_SRC/pkg/${pkgname}/addon/tests/standalone | grep -v '^#')`
standalone_tests=`paste -sd '|' <(cat $LKP_SRC/programs/${pkgname}/pkg/addon/tests/standalone | grep -v '^#')`
sed -n '2p' build/tests/test-list.txt | tr " " "\n" | grep -v amdgpu | grep -vE "$standalone_tests" | sort > all-tests

$LKP_SRC/tools/split-tests all-tests 25 group-
Expand All @@ -38,5 +38,5 @@ package()
mkdir -p $benchmark_path
cp -af "${srcdir}/igt-gpu-tools/"* $benchmark_path

cp -af $LKP_SRC/pkg/${pkgname}/exclude $benchmark_path
cp -af $LKP_SRC/programs/${pkgname}/pkg/exclude $benchmark_path
}

0 comments on commit d25f58a

Please sign in to comment.